Struts2配置redis共享session启动报错,求大神指点.配置和报错信息如下:
来源:互联网 发布:直播人气软件 编辑:程序博客网 时间:2024/06/05 21:12
加上标出配置,启动则报错,去除则正常启动.
<!-- redis配置 -->
<!-- redis连接池 -->
<bean id="jedisPoolConfig" class="redis.clients.jedis.JedisPoolConfig" />
<bean id="jedisConnectionFactory"
class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory">
<property name="hostName" value="10.0.0.5" />
<property name="port" value="6379" />
<property name="timeout" value="100000" />
<property name="poolConfig" ref="jedisPoolConfig" />
<property name="usePool" value="true" />
</bean>
<bean id="redisTemplate" class="org.springframework.data.redis.core.StringRedisTemplate">
<property name="connectionFactory" ref="jedisConnectionFactory" />
</bean>
<!-- 将session放入redis -->
<bean id="redisHttpSessionConfiguration"
class="org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration">
<property name="maxInactiveIntervalInSeconds" value="1800" />
</bean>
报错信息如下:
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Method 'propertySourcesPlaceholderConfigurer' must not be private, final or static; change the method's modifiers to continue
Offending resource: class path resource [org/springframework/session/data/redis/config/annotation/web/http/RedisHttpSessionConfiguration.class]
at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
at org.springframework.context.annotation.ConfigurationClassMethod.validate(ConfigurationClassMethod.java:61)
at org.springframework.context.annotation.ConfigurationClass.validate(ConfigurationClass.java:139)
at org.springframework.context.annotation.ConfigurationClassParser.validate(ConfigurationClassParser.java:167)
at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:198)
at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:142)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:599)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5099)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5615)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
- Struts2配置redis共享session启动报错,求大神指点.配置和报错信息如下:
- php 链接oracle 求大神指点 目前报错如下 Fatal error: Call to undefined function oci_connect() in
- java项目在变更ip段以后,无法启动报错信息如下。请大神指教
- 配置Struts2启动的时候报错
- tomcat+redis共享session setAttribute报错
- Redis启动报错
- Redis启动报错
- redis启动报错
- struts2 启动报错
- Struts2启动报错
- Eclipse启动报错,日志如下
- struts2配置execAndWait报错的解决办法..
- php 常见配置信息报错 url_init()
- drbd配置和报错
- Redis安装报错信息
- Weblogic 配置SSL启动报错
- 配置WAS数据源启动报错问题
- Tomcat启动一闪而过,报错,配置JDK
- iOS主题更换、音乐播放器、栏目管理、上传视频封面等源码
- swift中可选类型个人总结
- 真正接触编程 求各位大佬点拨!!!!!
- android scrollview 嵌套 Viewpager, Viewpager 不能动态的设置高度,一直使用第一个fragment页面的高度
- BZOJ1014 [JSOI2008]火星人prefix
- Struts2配置redis共享session启动报错,求大神指点.配置和报错信息如下:
- HTML笔记1
- qq跳转到指定qq聊天消息窗口界面
- 正则匹配的通用方法
- matlab 2012 vs2010混合编程
- SpringBoot01 java的配置方式
- NLP基础-BOW-影评分类
- 超大数减1
- spring boot 学习笔记(05)——热部署 之spring-boot-devtools