mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-01-12 21:01:12 +00:00
parent
be048ae2ac
commit
616386803c
2 changed files with 7 additions and 2 deletions
|
|
@ -26,7 +26,12 @@ import org.springframework.boot.context.web.SpringBootServletInitializer;
|
|||
*
|
||||
*/
|
||||
@SpringBootApplication
|
||||
public class PetClinicApplication {
|
||||
public class PetClinicApplication extends SpringBootServletInitializer {
|
||||
|
||||
@Override
|
||||
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
|
||||
return application.sources(PetClinicApplication.class);
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
SpringApplication.run(PetClinicApplication.class, args);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue