diff --git a/src/main/java/cokr/xit/base/boot/XitBaseApplication.java b/src/main/java/cokr/xit/base/boot/XitBaseApplication.java index c94eecd..a7d0d84 100644 --- a/src/main/java/cokr/xit/base/boot/XitBaseApplication.java +++ b/src/main/java/cokr/xit/base/boot/XitBaseApplication.java @@ -2,6 +2,8 @@ package cokr.xit.base.boot; import org.springframework.boot.autoconfigure.ImportAutoConfiguration; 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 cokr.xit.foundation.boot.CommonConfig; @@ -17,9 +19,21 @@ import cokr.xit.foundation.boot.TransactionConfig; CommonConfig.class, ServletConfig.class, MvcConfig2.class, - DatasourceConfig.class, - TransactionConfig.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") public class XitBaseApplication {} \ No newline at end of file