Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring Boot 2.x基础教程:使用EhCache缓存集群 本地环境怎么部署? #61

Open
maoqingcode opened this issue Nov 6, 2020 · 0 comments

Comments

@maoqingcode
Copy link

maoqingcode commented 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" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant