티스토리 뷰

728x90
@EnableScheduling
@EnableSchedulerLock(defaultLockAtMostFor = "30s")
@Configuration
@Profile("!integration-test")
public class SchedulerConfig {

https://stackoverflow.com/questions/29014496/disable-enablescheduling-on-spring-tests

 

Disable @EnableScheduling on Spring Tests

When I run my unit tests, it invokes my scheduled tasks. I want to prevent this behaviour, which is caused by the fact that I have @EnableScheduling on my main app configuration. How can I disable...

stackoverflow.com

 

728x90

'공부' 카테고리의 다른 글

[intelliJ] VM Options  (0) 2023.09.10
[java] list sum  (0) 2023.09.10
[github] working-directory in actions  (0) 2023.09.07
[macosx] sudo pmset -c disablesleep 0 or 1  (0) 2023.09.07
[sh] ssh -p 10022 root@seunggabi.com  (0) 2023.09.07
댓글