@Import -> @ImportAutoConfiguration

master
mjkhan21 1 year ago
parent 86be114249
commit d8891c751f

@ -124,6 +124,18 @@
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

@ -1,7 +1,7 @@
package cokr.xit.foundation.boot;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
import org.springframework.test.context.ContextConfiguration;
/**Spring Boot xit-foundation.jar
@ -14,7 +14,7 @@ import org.springframework.test.context.ContextConfiguration;
*/
@SpringBootApplication
@ContextConfiguration("classpath:spring/context-*.xml")
@Import({
@ImportAutoConfiguration({
CommonConfig.class,
ServletConfig.class,
MvcConfig.class,

@ -3,9 +3,9 @@ package cokr.xit.foundation.boot;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
import org.springframework.context.annotation.Import;
import org.springframework.test.context.ContextConfiguration;
/**Spring Boot xit-foundation.jar stand-alone
@ -19,7 +19,7 @@ import org.springframework.test.context.ContextConfiguration;
@SpringBootApplication(exclude = {
WebMvcAutoConfiguration.class
})
@Import({
@ImportAutoConfiguration({
CommonConfig.class,
DatasourceConfig.class,
TransactionConfig.class,

Loading…
Cancel
Save