主题 : 启动报ehcache错误 |
级别: 童生
![]() |
1# 发表于:2022-09-19 16:42:18 IP:101.43.*.*
|
||||
---|---|---|---|---|---|
级别: 总版主
![]() |
2# 发表于:2022-09-19 16:53:39 IP:60.230.*.*
spring.jpa.properties 配置文件调整下配置 #Ehcache集群手工配置如下(点对点)** spring.jpa.properties.ehcache.cluster-enabled=true ##manual手动 automatic自动 spring.jpa.properties.ehcache.cluster.provider.peer-discovery=manual ##默认32 spring.jpa.properties.ehcache.cluster.provider.automatic.time-to-live=32 ##缓存监听者端口地址 默认:127.0.0.1 需要调整 spring.jpa.properties.ehcache.cluster.listener.host-name=127.0.0.1 spring.jpa.properties.ehcache.cluster.provider.manual.rmi-urls=127.0.0.1:40001 ##开启随机监听端口(默认不开启随机,默认采用40001端口) spring.jpa.properties.ehcache.cluster.listener.random-port-enabled=false ###随机端口范围上限 默认 40999 spring.jpa.properties.ehcache.cluster.listener.max-random-port=40999 ###随机端口范围下限 默认 40000 spring.jpa.properties.ehcache.cluster.listener.min-random-port=40000 ###随机端口获取失败默认端口 spring.jpa.properties.ehcache.cluster.listener.port=40001 #监听socket连接超时时间 默认2000毫秒 spring.jpa.properties.ehcache.cluster.listener.socket-timeout-millis=2000 spring.jpa.properties.ehcache.cluster.unSyncCacheName="" 注释掉如下自动配置的方式 #Ehcache 集群自动配置 #spring.jpa.properties.ehcache.cluster-enabled=true #manual手动 automatic自动 #spring.jpa.properties.ehcache.cluster.provider.peer-discovery=automatic #默认32 #spring.jpa.properties.ehcache.cluster.provider.automatic.time-to-live=32 #缓存监听者端口地址 默认:127.0.0.1 需要调整 #spring.jpa.properties.ehcache.cluster.listener.host-name=127.0.0.1 #开启随机监听端口(默认不开启随机,默认采用40001端口) #spring.jpa.properties.ehcache.cluster.listener.random-port-enabled=false #随机端口范围上限 默认 40999 #spring.jpa.properties.ehcache.cluster.listener.max-random-port=40999 #随机端口范围下限 默认 40000 #spring.jpa.properties.ehcache.cluster.listener.min-random-port=40000 #随机端口获取失败默认端口 #spring.jpa.properties.ehcache.cluster.listener.port=40001 #监听socket连接超时时间 默认2000毫秒 #spring.jpa.properties.ehcache.cluster.listener.socket-timeout-millis=2000 #不同步的缓存 默认空 #spring.jpa.properties.ehcache.cluster.unSyncCacheName="" |
||
---|---|---|---|
1
共1页