Closed medoer closed 1 year ago
@medoer : can you provide the step you used? at least which modules did you use, so I can try to reproduce the issue
OK, I will try and give you the step later.
@medoer : can you provide the step you used? at least which modules did you use, so I can try to reproduce the issue
I try and find that when i supported both ehcache-java-config and spring-boot-cache, the CacheConfiguration
will be cleared.
.hipster/modules/hisotry.json
{ "actions" : [ { "module" : "init", "date" : "2023-03-27T13:34:58.193913Z", "properties" : { "packageName" : "com.mycompany.myapp", "projectName" : "JHipster Sample Application", "baseName" : "jhipsterSampleApplication", "endOfLine" : "lf", "indentSize" : 2 } }, { "module" : "maven-java", "date" : "2023-03-27T13:34:58.225338Z", "properties" : { "packageName" : "com.mycompany.myapp", "projectName" : "JHipster Sample Application", "baseName" : "jhipsterSampleApplication", "endOfLine" : "lf", "indentSize" : 2 } }, { "module" : "java-base", "date" : "2023-03-27T13:34:58.239758Z", "properties" : { "packageName" : "com.mycompany.myapp", "projectName" : "JHipster Sample Application", "baseName" : "jhipsterSampleApplication", "endOfLine" : "lf", "indentSize" : 2 } }, { "module" : "spring-boot", "date" : "2023-03-27T13:34:58.281200Z", "properties" : { "packageName" : "com.mycompany.myapp", "projectName" : "JHipster Sample Application", "baseName" : "jhipsterSampleApplication", "endOfLine" : "lf", "indentSize" : 2 } }, { "module" : "ehcache-java-config", "date" : "2023-03-27T13:34:58.306741Z", "properties" : { "packageName" : "com.mycompany.myapp", "projectName" : "JHipster Sample Application", "baseName" : "jhipsterSampleApplication", "endOfLine" : "lf", "indentSize" : 2 } }, { "module" : "spring-boot-cache", "date" : "2023-03-27T13:34:58.328374Z", "properties" : { "packageName" : "com.mycompany.myapp", "projectName" : "JHipster Sample Application", "baseName" : "jhipsterSampleApplication", "endOfLine" : "lf", "indentSize" : 2 } } ] }
Thanks @medoer, now I understand Indeed, there is a bug with Spring Boot Cache. For now, you need to choose only 1: spring boot cache or ehcache-java-config Not both
OK.
The CacheConfiguration class just a @Configuration with a EnableCaching annotation. But have two test class use its methods.