Skip to content

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

Open
@maoqingcode

Description

@maoqingcode

本地环境 只更改端口 发现不生效

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" />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions