You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.0 KiB
29 lines
1.0 KiB
package com;
|
|
|
|
import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
|
|
import com.alicp.jetcache.anno.config.EnableMethodCache;
|
|
import com.hfkj.common.utils.SpringContextUtil;
|
|
import org.mybatis.spring.annotation.MapperScan;
|
|
import org.springframework.boot.SpringApplication;
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
import org.springframework.boot.web.servlet.ServletComponentScan;
|
|
import org.springframework.context.ApplicationContext;
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
|
|
|
@SpringBootApplication
|
|
// @ComponentScan
|
|
@EnableTransactionManagement
|
|
@EnableScheduling
|
|
@EnableMethodCache(basePackages = "com.hfkj")
|
|
@EnableCreateCacheAnnotation
|
|
@ServletComponentScan
|
|
@MapperScan("com.hfkj.dao")
|
|
public class OrderApplication {
|
|
public static void main( String[] args )
|
|
{
|
|
ApplicationContext app = SpringApplication.run(OrderApplication.class, args);
|
|
SpringContextUtil.setApplicationContext(app);
|
|
}
|
|
|
|
}
|
|
|