12345678910111213141516171819202122232425262728293031323334353637 |
- /*
- * *************************************************
- * Copyright (c) 2018 QMTH. All Rights Reserved.
- * Created by Deason on 2018-07-16 15:00:21.
- * *************************************************
- */
- package cn.com.qmth;
- import org.springframework.boot.SpringApplication;
- import org.springframework.boot.autoconfigure.SpringBootApplication;
- import org.springframework.boot.autoconfigure.domain.EntityScan;
- import org.springframework.context.annotation.ComponentScan;
- import org.springframework.scheduling.annotation.EnableAsync;
- @EnableAsync
- @SpringBootApplication
- @ComponentScan(basePackages = {"cn.com.qmth"})
- @EntityScan(basePackages = {"cn.com.qmth"})
- public class Application {
- static {
- String runtimeLevel = System.getProperty("log.commonLevel");
- if (null == runtimeLevel) {
- System.setProperty("log.commonLevel", "INFO");
- }
- System.setProperty("hibernate.dialect.storage_engine", "innodb");
- }
- public static void main(String[] args) {
- //SpringApplication.run(ApiApplication.class, args);
- SpringApplication.run(Application.class, args);
- Temp temp=SpringContextHolder.getBean("temp", Temp.class);
- temp.test();
- }
- }
|