mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-05-21 03:19:38 +00:00
Make jar not war
This commit is contained in:
parent
fd524d05d5
commit
be048ae2ac
2 changed files with 2 additions and 7 deletions
2
pom.xml
2
pom.xml
|
@ -11,7 +11,7 @@
|
|||
<version>1.3.5.RELEASE</version>
|
||||
</parent>
|
||||
<name>petclinic</name>
|
||||
<packaging>war</packaging>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<properties>
|
||||
|
||||
|
|
|
@ -26,12 +26,7 @@ import org.springframework.boot.context.web.SpringBootServletInitializer;
|
|||
*
|
||||
*/
|
||||
@SpringBootApplication
|
||||
public class PetClinicApplication extends SpringBootServletInitializer {
|
||||
|
||||
@Override
|
||||
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
|
||||
return application.sources(PetClinicApplication.class);
|
||||
}
|
||||
public class PetClinicApplication {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
SpringApplication.run(PetClinicApplication.class, args);
|
||||
|
|
Loading…
Reference in a new issue