Pourquoi le fichier ehcache.xml suivant ne permet pas d'effacer les caches via JMX (l'onglet Opérations est désactivé dans JVisualVM pour MBean pour la gestion du cache et activé pour la statistique de cache)? J'utilise le framework de démarrage Spring et spécifie l'emplacement du fichier ehcache.xml via la propriété spring.cache.jcache.config et utilise simplement l'annotation de framework @Cachable Spring.Comment activer les opérations Ehcache 3.x JSR-107 MBean?
<config
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns='http://www.ehcache.org/v3'
xmlns:jsr107='http://www.ehcache.org/v3/jsr107'
xsi:schemaLocation="
http://www.ehcache.org/v3 http://www.ehcache.org/schema/ehcache-core-3.0.xsd
http://www.ehcache.org/v3/jsr107 http://www.ehcache.org/schema/ehcache-107-ext-3.0.xsd">
<service>
<jsr107:defaults enable-management="true" enable-statistics="true"/>
</service>
<cache alias="stringCache">
<key-type>java.lang.String</key-type>
<value-type>java.lang.String</value-type>
<heap unit="entries">2000</heap>
</cache>
</config>
croisé: https://github.com/ehcache/ehcache3/issues/1993 –