Spring Boot 2.x基础教程:使用EhCache缓存集群 本地环境怎么部署?
Author: maoqingcodeCreated Nov 6, 2020Updated Nov 6, 2020
本地环境 只更改端口 发现不生效
ehcache-1.xml
<cacheManagerPeerProviderFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
properties="hostName=localhost,
port=40001,
socketTimeoutMillis=2000,
peerDiscovery=manual,
rmiUrls=//localhost:40002/users" />ehcache-2.xml
<cacheManagerPeerProviderFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
properties="hostName=localhost,
port=40002,
socketTimeoutMillis=2000,
peerDiscovery=manual,
rmiUrls=//localhost:40001/users" />Source: dyc87112/SpringBoot-Learning