Disable @EnableScheduling on Spring Tests

If you don’t want to use profiles, you can add flag that will enable/disable scheduling for the application In your AppConfiguration add this @ConditionalOnProperty( value = “app.scheduling.enable”, havingValue = “true”, matchIfMissing = true ) @Configuration @EnableScheduling public static class SchedulingConfiguration { } and in your test just add this annotation to disable scheduling @TestPropertySource(properties = … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)