-
shedlock | 4.0 이상 버전에서 locked 오류 (do not know what to return if it's locked)▼ Backend/스프링 (Spring) 2021. 2. 4. 16:01반응형
Servlet.service() for servlet [action] in context with path [] threw exception [Request processing failed; nested exception is Exception: Can not lock method returning value (do not know what to return if it's locked)] with root cause
Can not lock method returning value (do not know what to return if it's locked)
shedlock 4.0을 사용중 locked 에러가 발생
<dependency> <groupId>net.javacrumbs.shedlock</groupId> <artifactId>shedlock-spring</artifactId> <version>4.0.0</version> </dependency> <dependency> <groupId>net.javacrumbs.shedlock</groupId> <artifactId>shedlock-provider-jdbc-template</artifactId> <version>4.0.0</version> </dependency>
@EnableSchedulerLock에 interceptMode 를 추가해준다.
@EnableSchedulerLock(interceptMode = InterceptMode.PROXY_SCHEDULER, defaultLockAtMostFor="PT30S")반응형'▼ Backend > 스프링 (Spring)' 카테고리의 다른 글
Spring Boot | 메일 발송하기 (Google SMTP) (10) 2021.06.01 Spring Boot | Scheduler 설정하기 (0) 2021.05.17 Spring-loaded 적용하기 (0) 2021.05.14 Spring Boot | 콘솔 쿼리 로그 출력 (0) 2021.02.10 Spring Boot | 웹 프로젝트 만들기 (JSP, War, Maven, Eclipse) (0) 2021.01.04