mirror of
https://gitee.com/dcren/initializr.git
synced 2026-02-26 05:32:58 +08:00
As of Spring Boot 1.4.0.M3, `SpringBootServletInitializer` has been relocated to the `org.springframework.boot.web.support` package. This commit makes sure to use the new location if a project is generated for Spring Boot `1.4.0.M3` or higher. Closes gh-243
14 lines
367 B
Plaintext
14 lines
367 B
Plaintext
package com.example
|
|
|
|
import org.springframework.boot.builder.SpringApplicationBuilder
|
|
import org.springframework.boot.web.support.SpringBootServletInitializer
|
|
|
|
class ServletInitializer extends SpringBootServletInitializer {
|
|
|
|
@Override
|
|
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
|
|
application.sources(DemoApplication)
|
|
}
|
|
|
|
}
|