@Import -> @ImportAutoConfiguration
parent
5c72413fbe
commit
6ae6a18e67
@ -1,14 +1,23 @@
|
||||
package cokr.xit.base.boot;
|
||||
|
||||
import org.springframework.context.annotation.Import;
|
||||
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
import cokr.xit.foundation.boot.FoundationApplication;
|
||||
import cokr.xit.foundation.boot.CommonConfig;
|
||||
import cokr.xit.foundation.boot.DatasourceConfig;
|
||||
import cokr.xit.foundation.boot.ServletConfig;
|
||||
import cokr.xit.foundation.boot.TransactionConfig;
|
||||
|
||||
/**Spring Boot에서 xit-base 모듈을 사용하는 웹 애플리케이션의 베이스 클래스
|
||||
* @author mjkhan
|
||||
*/
|
||||
@Import({
|
||||
@SpringBootApplication
|
||||
@ImportAutoConfiguration({
|
||||
CommonConfig.class,
|
||||
ServletConfig.class,
|
||||
MvcConfig2.class,
|
||||
DatasourceConfig.class,
|
||||
TransactionConfig.class,
|
||||
SecurityConfig.class,
|
||||
})
|
||||
public class XitBaseApplication extends FoundationApplication {}
|
||||
public class XitBaseApplication {}
|
Loading…
Reference in New Issue