I\'m looking for 2 things:
How to disable all caching during development with Spring boot \"dev\" profile. There doesn\'t seam to be a general setting to tu
For your second question do something like this:
Write a method that determines whether or not a particular profile is active (environment is your injected Environment)
boolean isProfileActive(String profile) {
return Arrays.asList(environment.getActiveProfiles()).contains(profile);
}
then use that for your spel condition on the cacheable annotation