From e9f5f7b54108e35e660a9c9311a682ddce0633bc Mon Sep 17 00:00:00 2001 From: Antoine Rey <antoine.rey@gmail.com> Date: Thu, 23 Jun 2016 19:46:56 +0200 Subject: [PATCH] #164 Add main class required by the spring-boot-maven-plugin --- .../samples/petclinic/PetClinicApplication.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/springframework/samples/petclinic/PetClinicApplication.java b/src/main/java/org/springframework/samples/petclinic/PetClinicApplication.java index c163994..934acfd 100644 --- a/src/main/java/org/springframework/samples/petclinic/PetClinicApplication.java +++ b/src/main/java/org/springframework/samples/petclinic/PetClinicApplication.java @@ -54,4 +54,8 @@ public class PetClinicApplication extends SpringBootServletInitializer { return application.sources(PetClinicApplication.class); } + public static void main(String[] args) throws Exception { + SpringApplication.run(PetClinicApplication.class, args); + } + } -- GitLab