|
|
@ -2,6 +2,8 @@ package cokr.xit.base.boot;
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
|
|
|
|
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
|
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
|
|
|
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
|
|
|
|
|
|
import org.springframework.context.annotation.FilterType;
|
|
|
|
import org.springframework.test.context.ContextConfiguration;
|
|
|
|
import org.springframework.test.context.ContextConfiguration;
|
|
|
|
|
|
|
|
|
|
|
|
import cokr.xit.foundation.boot.CommonConfig;
|
|
|
|
import cokr.xit.foundation.boot.CommonConfig;
|
|
|
@ -17,9 +19,21 @@ import cokr.xit.foundation.boot.TransactionConfig;
|
|
|
|
CommonConfig.class,
|
|
|
|
CommonConfig.class,
|
|
|
|
ServletConfig.class,
|
|
|
|
ServletConfig.class,
|
|
|
|
MvcConfig2.class,
|
|
|
|
MvcConfig2.class,
|
|
|
|
DatasourceConfig.class,
|
|
|
|
|
|
|
|
TransactionConfig.class,
|
|
|
|
|
|
|
|
SecurityConfig.class,
|
|
|
|
SecurityConfig.class,
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
DatasourceConfig.class,
|
|
|
|
|
|
|
|
TransactionConfig.class
|
|
|
|
|
|
|
|
*/
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
@ComponentScan(
|
|
|
|
|
|
|
|
basePackages = "cokr.xit",
|
|
|
|
|
|
|
|
excludeFilters = @ComponentScan.Filter(
|
|
|
|
|
|
|
|
type = FilterType.ASSIGNABLE_TYPE,
|
|
|
|
|
|
|
|
classes = {
|
|
|
|
|
|
|
|
DatasourceConfig.class,
|
|
|
|
|
|
|
|
TransactionConfig.class
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
)
|
|
|
|
@ContextConfiguration("classpath:spring/context-*.xml")
|
|
|
|
@ContextConfiguration("classpath:spring/context-*.xml")
|
|
|
|
public class XitBaseApplication {}
|
|
|
|
public class XitBaseApplication {}
|