@Import -> @ImportAutoConfiguration

master
mjkhan21 1 year ago
parent 5c72413fbe
commit 6ae6a18e67

@ -99,6 +99,19 @@
</dependencies>
<build>
<defaultGoal>install</defaultGoal>
<directory>${basedir}/target</directory>
<finalName>${project.artifactId}-${project.version}</finalName>
<resources>
<resource><directory>${basedir}/src/main/resources</directory></resource>
</resources>
<testResources>
<testResource><directory>${basedir}/src/test/resources</directory></testResource>
<testResource><directory>${basedir}/src/main/resources</directory></testResource>
</testResources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>

@ -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…
Cancel
Save