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>
|
<version>1.3.5.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
<name>petclinic</name>
|
<name>petclinic</name>
|
||||||
<packaging>war</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|
||||||
|
|
|
@ -26,12 +26,7 @@ import org.springframework.boot.context.web.SpringBootServletInitializer;
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
public class PetClinicApplication extends SpringBootServletInitializer {
|
public class PetClinicApplication {
|
||||||
|
|
||||||
@Override
|
|
||||||
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
|
|
||||||
return application.sources(PetClinicApplication.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
SpringApplication.run(PetClinicApplication.class, args);
|
SpringApplication.run(PetClinicApplication.class, args);
|
||||||
|
|
Loading…
Reference in a new issue