File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
grails-web-boot/src/test/groovy/grails/boot Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package grails.boot
33import grails.artefact.Artefact
44import grails.boot.config.GrailsAutoConfiguration
55import grails.web.Controller
6- import org.springframework.boot.autoconfigure.SpringBootApplication
6+ import org.springframework.boot.autoconfigure.EnableAutoConfiguration
77import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory
88import org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext
99import org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory
@@ -31,7 +31,7 @@ class EmbeddedContainerWithGrailsSpec extends Specification {
3131 new URL (" http://localhost:${ context.webServer.port} /foos" ). text == ' all foos'
3232 }
3333
34- @SpringBootApplication
34+ @EnableAutoConfiguration
3535 static class Application extends GrailsAutoConfiguration {
3636 @Bean
3737 ConfigurableServletWebServerFactory webServerFactory () {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package grails.boot
22
33import grails.boot.config.GrailsAutoConfiguration
44import org.springframework.boot.SpringApplication
5- import org.springframework.boot.autoconfigure.SpringBootApplication
5+ import org.springframework.boot.autoconfigure.EnableAutoConfiguration
66import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory
77import org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext
88import org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory
@@ -32,7 +32,7 @@ class GrailsSpringApplicationSpec extends Specification{
3232 }
3333
3434
35- @SpringBootApplication
35+ @EnableAutoConfiguration
3636 static class Application extends GrailsAutoConfiguration {
3737 @Bean
3838 ConfigurableServletWebServerFactory webServerFactory () {
You can’t perform that action at this time.
0 commit comments