加二级缓存配置报错
-
严重: 分配异常的servlet [springDispatcherServlet]
org.springframework.beans.NotWritablePropertyException: Invalid property 'sharedCacheMode' of bean class [org.springframework.orm.hibernate5.LocalSessionFactoryBean]: Bean property 'sharedCacheMode' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
<!-- 配置二级缓存的策略 @cacheable(true)的实体类将被缓存 -->
<!-- <property value="ENABLE_SELECTIVE" name="sharedCacheMode"/> -->
加这句就报错