I created a cache called "mycache" which is applied to a method in my Service like:
@Cacheable(value = "mycache")
public String getValue(String something) {
...breakpoint here...
}
I also have the following in my application.yml
:
---
spring:
profiles: dev
cache:
type: NONE
(NOTE: I also tried: none - all lowercase - and that also did not work)
And in my class I have a field that shows me it is the "dev" profile:
@Value("${spring.profiles.active}")
private String activeProfiles;
When I call it the first time (in debug mode), it hits the breakpoint, but everytime after that it does not (which means it's not applying the YAML setting).
How do I disable it by profile?