成人在线亚洲_国产日韩视频一区二区三区_久久久国产精品_99国内精品久久久久久久

您的位置:首頁技術文章
文章詳情頁

java - spring redis redisTemplate注入失敗

瀏覽:196日期:2024-02-05 13:31:07

問題描述

jar版本:<redis.clients>2.8.1</redis.clients>

<spring-data-redis>1.7.5.RELEASE</spring-data-redis> <spring.version>4.0.2.RELEASE</spring.version>

spring中的redis配置 bean:<bean class='redis.clients.jedis.JedisPoolConfig'>

<property name='maxIdle' value='${redis.maxIdle}' /> <property name='maxTotal' value='${redis.maxActive}' /> <property name='maxWaitMillis' value='${redis.maxWait}' /> <property name='testOnBorrow' value='${redis.testOnBorrow}' /> </bean><bean p:host-name='${redis.host}' p:port='${redis.port}' p:password='${redis.pass}' p:pool-config-ref='poolConfig' /><bean class='org.springframework.data.redis.core.StringRedisTemplate'> <property name='connectionFactory' ref='connectionFactory' /><!-- 如果不配置Serializer,那么存儲的時候智能使用String,如果用User類型存儲,那么會提示錯誤User can’t cast to String!!! --><property name='keySerializer'><bean /> </property> <property name='valueSerializer'><bean /> </property></bean>

集成了多個模塊項目 其中一個出現錯誤 不知道什么原因引起的tomcat jetty都報錯報錯:2017-03-07 23:12:32,480 [main] ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name ’redisTemplate’ defined in URL [file:/E:/CDXX/dev/code/workspace/lgip/target/classes/spring-jedis.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.serializer.support.DeserializingConverter.<init>(Ljava/lang/ClassLoader;)V

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1553)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:700)at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782)at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774)at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)at org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:298)at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:172)at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)at org.eclipse.jetty.server.Server.doStart(Server.java:282)at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65)at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:520)at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:365)at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:523)at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

Caused by: java.lang.NoSuchMethodError: org.springframework.core.serializer.support.DeserializingConverter.<init>(Ljava/lang/ClassLoader;)V

at org.springframework.data.redis.serializer.JdkSerializationRedisSerializer.<init>(JdkSerializationRedisSerializer.java:53)at org.springframework.data.redis.core.RedisTemplate.afterPropertiesSet(RedisTemplate.java:119)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1612)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1549)... 55 more

[WARNING] Failed startup of context o.m.j.p.JettyWebAppContext{/,file:/E:/CDXX/dev/code/workspace/lgip/src/main/webapp/},file:/E:/CDXX/dev/code/workspace/lgip/src/main/webapp/org.springframework.beans.factory.BeanCreationException: Error creating bean with name ’redisTemplate’ defined in URL [file:/E:/CDXX/dev/code/workspace/lgip/target/classes/spring-jedis.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.serializer.support.DeserializingConverter.<init>(Ljava/lang/ClassLoader;)V

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1553)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:700)at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782)at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774)at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)at org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:298)at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:172)at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)at org.eclipse.jetty.server.Server.doStart(Server.java:282)at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65)at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:520)at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:365)at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:523)at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

Caused by: java.lang.NoSuchMethodError: org.springframework.core.serializer.support.DeserializingConverter.<init>(Ljava/lang/ClassLoader;)V

at org.springframework.data.redis.serializer.JdkSerializationRedisSerializer.<init>(JdkSerializationRedisSerializer.java:53)at org.springframework.data.redis.core.RedisTemplate.afterPropertiesSet(RedisTemplate.java:119)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1612)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1549)... 55 more

問題解答

回答1:

類加載錯誤,org.springframework.core.serializer.support.DeserializingConverter 這個類在 spring-core 包里,應該是缺少 spring-core 包

回答2:

這個是 是spring版本問題

標簽: java
相關文章:
成人在线亚洲_国产日韩视频一区二区三区_久久久国产精品_99国内精品久久久久久久
91麻豆精品国产91久久久久久久久 | 免费黄网站欧美| 8x福利精品第一导航| 蜜臂av日日欢夜夜爽一区| 久久大逼视频| 亚洲国产美国国产综合一区二区| 亚洲美女毛片| 亚洲视频图片小说| av一区二区三区黑人| 欧美mv日韩mv国产网站app| 国产精品一级在线| 欧美女孩性生活视频| 久久激五月天综合精品| 色先锋aa成人| 奇米影视7777精品一区二区| 久久aⅴ国产紧身牛仔裤| 亚洲成av人片在线| 91黄色激情网站| 久久激情五月婷婷| 欧美亚洲图片小说| 精品一区二区三区免费播放| 欧美视频在线不卡| 国产精选一区二区三区| 欧美一区二区成人6969| 丰满亚洲少妇av| 2023国产精华国产精品| 欧美fxxxxxx另类| 亚洲国产精品精华液2区45| 欧美不卡一卡二卡免费版| 久久综合色播五月| 欧美在线影院| 自拍偷在线精品自拍偷无码专区| 亚洲高清视频在线观看| 亚洲综合一二区| 一本久久综合亚洲鲁鲁五月天| 蜜臀久久久99精品久久久久久| 欧美欧美欧美欧美首页| 成人免费视频视频在线观看免费| 国产亚洲精品aa午夜观看| 伊人激情综合| 天涯成人国产亚洲精品一区av| 欧美日韩一区二区在线观看视频| 国产91高潮流白浆在线麻豆| 国产视频一区二区在线观看| 亚洲国产日韩在线| 午夜成人免费视频| 6080午夜不卡| 欧美 日韩 国产在线| 一区二区三区鲁丝不卡| 久久99国产精品久久99果冻传媒| 精品免费一区二区三区| 欧美日韩亚洲一区| 午夜精品久久久久| 91精品欧美一区二区三区综合在 | 久久高清国产| 加勒比av一区二区| 久久久久久久久久久久久女国产乱| 精品成人在线| 久久精品免费观看| 精品国产一区a| 亚洲国产精品一区在线观看不卡| 五月婷婷激情综合| 欧美一区三区二区| 欧美日韩在线精品一区二区三区| 亚洲国产精品影院| 欧美一区二区三区在线观看视频| 午夜精品亚洲| 亚洲成av人片在线| 日韩一区二区三区av| 狠狠色噜噜狠狠狠狠色吗综合 | 欧美无乱码久久久免费午夜一区| 国产呦精品一区二区三区网站| 国产亚洲欧洲一区高清在线观看| 亚洲一区二区精品在线观看| 国产精品亚洲第一区在线暖暖韩国| 久久精品夜色噜噜亚洲a∨| 一区二区三区|亚洲午夜| 激情都市一区二区| 国产精品久久99| 欧美日韩三级在线| 黄色亚洲免费| 国产综合一区二区| 亚洲女子a中天字幕| 91精品国产综合久久精品| 亚洲高清资源综合久久精品| 久草中文综合在线| 日本一区二区三级电影在线观看| 久久精品电影| 欧美在线视频二区| 日韩精品一级二级 | 粉嫩一区二区三区在线看| 亚洲欧美自拍偷拍色图| 欧美午夜一区二区三区| 欧美特黄一区| 国模娜娜一区二区三区| 综合在线观看色| 欧美一区二区免费| 中文在线不卡| 国产91对白在线观看九色| 亚洲午夜精品在线| 久久久久国色av免费看影院| 色狠狠桃花综合| 国产精品二区三区四区| 精品一区二区影视| 亚洲女同ⅹxx女同tv| 欧美一区二区三区免费大片| aⅴ色国产欧美| 成人高清免费在线播放| 亚洲福利电影网| 国产日产欧美精品一区二区三区| 色综合激情久久| 欧美日韩视频在线一区二区观看视频| 青草国产精品久久久久久| 国产精品美女久久久久av爽李琼 | 夜久久久久久| 成人毛片视频在线观看| 石原莉奈在线亚洲二区| 国产精品区一区二区三| 日韩一级视频免费观看在线| 久久精品亚洲| 激情久久婷婷| av网站一区二区三区| 美女视频免费一区| 一区二区三区在线看| 精品国产一区二区三区四区四| 欧美综合亚洲图片综合区| 亚洲黄色av| 99在线精品一区二区三区| 裸体一区二区三区| 亚洲宅男天堂在线观看无病毒| 久久久久97国产精华液好用吗| 欧美日韩精品一区二区三区四区| 国产精品免费一区二区三区观看| 91色乱码一区二区三区| 国产精品一区二区男女羞羞无遮挡| 天天操天天色综合| 亚洲精品美国一| 国产精品视频九色porn| 精品国产一区二区亚洲人成毛片| 欧美日韩色综合| 色婷婷精品久久二区二区蜜臂av| 亚洲欧洲日本一区二区三区| fc2成人免费人成在线观看播放| 国产一区二区三区不卡在线观看 | 精品不卡在线| 欧美精品激情| 91免费看`日韩一区二区| 成人黄页毛片网站| 国产成都精品91一区二区三| 久久国产欧美日韩精品| 日韩精品1区2区3区| 亚洲午夜免费视频| 亚洲黄色在线视频| 国产精品九色蝌蚪自拍| 日本一区二区三区四区| 久久精品视频免费| 久久久久久久久岛国免费| 欧美成人猛片aaaaaaa| 日韩欧美国产高清| 欧美一区二区成人| 欧美一区二区三区电影| 3d动漫精品啪啪1区2区免费| 67194成人在线观看| 制服丝袜成人动漫| 在线成人小视频| 91.com在线观看| 欧美一级久久久久久久大片| 欧美猛男gaygay网站| 欧美性大战久久| 欧美日韩国产经典色站一区二区三区 | 亚洲精选久久| 日韩午夜av在线| 国产人成精品一区二区三| 国产欧美一区二区三区另类精品 | 国产成人在线视频网站| 国产精品影视在线观看| 麻豆免费看一区二区三区| 麻豆精品视频在线| 六月丁香综合在线视频| 久久99久久精品| 国产传媒日韩欧美成人| 丁香亚洲综合激情啪啪综合| 成人精品小蝌蚪| 欧美一区二区三区四区在线观看地址| 91蜜桃婷婷狠狠久久综合9色| 欧美99在线视频观看| 影院欧美亚洲| 亚洲欧美成人| 久久伊人亚洲| 欧美肥大bbwbbw高潮| 精品少妇一区二区三区| 久久免费偷拍视频| 亚洲国产经典视频| 亚洲女人小视频在线观看| 亚洲成人高清在线| 日韩经典中文字幕一区| 国产尤物一区二区| 成人精品国产免费网站| 91美女片黄在线观看91美女| 亚洲经典在线看|