Wildfly 18 驱逐标签未解析,导致解析配置错误。当我将 Wildfly 11 升级到 18 时,就会出现这种情况。在 Wildfly 11(infinispan 4)中,它工作正常
<subsystem xmlns="urn:jboss:domain:infinispan:4.0">
<cache-container name="security" default-cache="auth-cache">
<local-cache name="auth-cache">
<locking acquire-timeout="${infinispan.cache-container.security.auth-cache.locking.acquire-timeout}"/>
<eviction strategy="LRU" max-entries="${infinispan.cache-container.security.auth-cache.eviction.max-entries}"/>
<expiration max-idle="-1"/>
</local-cache>
</cache-container>
</subsystem>
在 Wildfly 18 中具有以下部分(不工作)
<subsystem xmlns="urn:jboss:domain:infinispan:9.0">
<cache-container name="security" default-cache="auth-cache">
<local-cache name="auth-cache">
<locking acquire-timeout="${infinispan.cache-container.security.auth-cache.locking.acquire-timeout}"/>
<eviction strategy="LRU" max-entries="${infinispan.cache-container.security.auth-cache.eviction.max-entries}"/>
<expiration max-idle="-1"/>
</local-cache>
</cache-container>
</subsystem>
它给出 ^^^^ 'eviction' 在这里不是一个允许的元素。infinispan:9.4它说驱逐是通过添加配置的,但即使这样也会提供无法识别的标签内存。
如何添加驱逐策略=LRU 或替换策略:“LRU”=?