springboot shedlock building fix

This commit is contained in:
Kai Yuan 2020-04-10 09:24:15 +02:00
parent 529de386d4
commit 7e26a04973
2 changed files with 7 additions and 3 deletions

View File

@ -28,6 +28,10 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId> <artifactId>spring-boot-starter-tomcat</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>

View File

@ -1,4 +1,4 @@
package com.baeldung; package com.baeldung.scheduling.shedlock;
import net.javacrumbs.shedlock.spring.annotation.EnableSchedulerLock; import net.javacrumbs.shedlock.spring.annotation.EnableSchedulerLock;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
@ -8,8 +8,8 @@ import org.springframework.scheduling.annotation.EnableScheduling;
@SpringBootApplication @SpringBootApplication
@EnableScheduling @EnableScheduling
@EnableSchedulerLock(defaultLockAtMostFor = "PT30S") @EnableSchedulerLock(defaultLockAtMostFor = "PT30S")
public class Application { public class SpringBootShedlockApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(Application.class, args); SpringApplication.run(SpringBootShedlockApplication.class, args);
} }
} }