Spring5.0+Spring MVC+ Hibernate 整合 5C

24-Mar-2018 21:24:36.132 警告 [RMI TCP Connection(3)-127.0.0.1] org.springframework.context.support.AbstractApplicationContext.refresh Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionException
24-Mar-2018 21:24:36.133 严重 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.FrameworkServlet.initServletBean Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1231)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1130)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:502)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:312)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:756)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:868)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:676)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:642)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:690)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:558)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:499)
at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:172)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1183)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:989)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4903)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5213)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1702)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:809)
at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:482)
at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:431)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:809)
at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1466)
at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:75)
at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1307)
at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1399)
at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:827)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:359)
at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:567)
at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:800)
at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:682)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:681)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionException
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:175)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:88)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1223)
... 65 more
Caused by: java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionException
at org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter.(AllEncompassingFormHttpMessageConverter.java:67)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.(RequestMappingHandlerAdapter.java:190)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
... 67 more
Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.databind.exc.InvalidDefinitionException
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1275)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1109)
... 74 more

6个回答

初始化错误,你去看看你的jar包是否引入正确

china19931017
青争SHINIAN spring5.0.0 这个jackson 需要引那个版本的jar包
一年多之前 回复
baidu_39206742
baidu_39206742 spring mvc需要jackson的包来解析json,加上就可以了
一年多之前 回复
china19931017
青争SHINIAN spring4也是可以的 就是spring5 不行
一年多之前 回复

spring mvc需要jackson的包来解析json,加上就可以了

china19931017
青争SHINIAN 在pom里面已经配置了 <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>2.1.4</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.databind</groupId> <artifactId>jackson.databind</artifactId> <version>2.1.4</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.annotation</groupId> <artifactId>jackson.annotation</artifactId> <version>2.1.4</version> </dependency>
一年多之前 回复

明细的可能是jdk的版本不一样,看看你的项目的设置jdk编译版本,设置1.5以上。方法:项目右键-属性->java complier
设置jdk的编译版本为1.6.

china19931017
青争SHINIAN jdk9.0 idae也设置了1.9 tomcat也是9.0
一年多之前 回复

NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionException,这个不是主要原因?

初始化jar包错误吧,查看一下是哪个

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
spring mvc整合hibernate
spring mvc整合hibernate的一套完整jar包
hibernate和spring MVC配置整合
hibernate和spring MVC配置整合
spring Spring MVC Hibernate 4.x 整合案例
spring 、 Spring MVC 、 Hibernate 4.x 整合案例 增删查改的封装,,里面是代码包括简单的框架搭建,只需下载后就可以允许,,正在对分页查询进行封装
Spring + Hibernate + Spring mvc +Ajax 整合
Spring + Hibernate + Spring mvc +Ajax 整合 框架,一个简单的添加删除。
spring mvc,spring, hibernate 整合登录实例
spring mvc,spring, hibernate 整合登录实例 代码简洁 简单易懂 易读
spring 整合spring mvc
spring整合spring mvc,通过IEDA进行整合,比较方便了~
spring mvc 与JPA/Hibernate的整合示例
NULL 博文链接:https://ll-feng.iteye.com/blog/1908511
**spring mvc 整合hibernate 配置,弄了好几天
spring mvc 整合hibernate 配置**最近在看到框架hibernate,花了好几天时间才弄懂其中的流程和原理,因为以前没有看过,简直是一把鼻涕一把泪 ,写下此篇,一方面总结,另一方面分享分享和大家。像hibernate一样持久层操纵数据库还有mybaties,等待我的新博客快捷键 加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl + Q 插入链接
spring mvc 整合hibernate 菜鸟级问题
小弟想用spring mvc 整合hibernate 但是spring总是如法注入。 spring配置文件如下rn[code="java"]rnrnrnrnrn rn rn classpath:jdbc.propertiesrn rn rn rnrn rn rn $datasource.driverClassNamern rn rn $datasource.urlrn rn rn $datasource.usernamern rn rn $datasource.passwordrn rn rn $c3p0.acquireIncrementrn rn rn $c3p0.initialPoolSizern rn rn $c3p0.minPoolSizern rn rn $c3p0.maxPoolSizern rn rn $c3p0.maxIdleTimern rn rn $c3p0.idleConnectionTestPeriodrn rn rn $c3p0.maxStatementsrn rn rn $c3p0.numHelperThreadsrn rn rnrn rn rn rn rn rnrn rn rn rn rn PROPAGATION_REQUIRED,readOnlyrn PROPAGATION_REQUIREDrn PROPAGATION_REQUIREDrn PROPAGATION_REQUIREDrn rn rn rn rn rn rn rn rn classpath:ac02.hbm.xmlrn rn rn rn rn org.hibernate.dialect.Oracle10gDialectrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrn[/code]rnQscDBservice类如下rn[code="java"]rnpackage com.qsc.m;rnrnimport java.sql.Connection;rnimport java.sql.PreparedStatement;rnimport java.sql.ResultSet;rnimport java.sql.SQLException;rnrnimport org.springframework.jdbc.core.JdbcTemplate;rnimport org.springframework.jdbc.datasource.DataSourceUtils;rnimport org.springframework.orm.hibernate3.HibernateTemplate;rnrnimport com.qsc.pojo.ac02;rnrnrnrnpublic class QscDBServiceImpl extends JdbcTemplate implements QscDBService rn rn private HibernateTemplate hibernateTemplate;rn rn public HibernateTemplate getHibernateTemplate() rn return hibernateTemplate;rn rnrn public void setHibernateTemplate(HibernateTemplate hibernateTemplate) rn this.hibernateTemplate = hibernateTemplate;rn rnpublic void sava(ac02 ac02) rn hibernateTemplate.save(ac02);rn rn[/code]rnControllerJoin类如下rn[code="java"]rnpackage com.qsc.c;rnrnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnrnimport org.springframework.web.servlet.ModelAndView;rnimport org.springframework.web.servlet.mvc.Controller;rnrnimport com.qsc.m.QscDBService;rnimport com.qsc.pojo.ac02;rnimport com.qsc.spring.ContextLoaderListener;rnrnpublic class ControllerJoin implements Controller rn private QscDBService qsc;rn rn public QscDBService getQsc() rn return qsc;rn rnrn public void setQsc(QscDBService qsc) rn this.qsc = qsc;rn rnrn public ModelAndView handleRequest(HttpServletRequest arg0,rn HttpServletResponse arg1) throws Exception rn //final QscDBService qsc = (QscDBService)ContextLoaderListener.getBean("QscDBService");rn rn ac02 ac02 = new ac02();rn String aac001 = arg0.getParameter("account");rn String aac002 = arg0.getParameter("name");rn String aac003 = arg0.getParameter("age");rn String aac004 = arg0.getParameter("email");rn String aac005 = arg0.getParameter("phone");rn String aac006 = arg0.getParameter("pass");rn ac02.setAac001(aac001);rn ac02.setAac002(aac002);rn ac02.setAac003(Integer.parseInt(aac003));rn ac02.setAac004(aac004);rn ac02.setAac005(aac005);rn ac02.setAac006(aac006);rn qsc.sava(ac02);rn return new ModelAndView("success");rn rnrnrn[/code]rndebug后发现 qsc和hibernatetemplate 这两个全是null 说明spring没注入成功,这是为啥啊?rn谢谢
Spring mvc 整合hibernate 中的事务问题
spring 3+hibernate 3 整合rnrn[b][color=#008000]spring 配置文件[/color][/b]rnrn[code=XML]rn rnrnrnrn[/code]rn[b][color=#008000]dao基类[/color][/b]rnrn[code=Java]rnimport javax.annotation.Resource;rnimport org.hibernate.SessionFactory;rnimport org.springframework.stereotype.Repository;rnimport org.springframework.transaction.annotation.Propagation;rnimport org.springframework.transaction.annotation.Transactional;rnrn@Repositoryrn@Transactional(readOnly = true, propagation = Propagation.SUPPORTS)rnpublic class BaseDao implementsrn BaseDaoService rnrn @Resourcern SessionFactory factory;rn /**rn *保存对象rn */rn @Overridern @Transactional(readOnly = false, propagation = Propagation.SUPPORTS)rn public void save(T entity) rn factory.getCurrentSession().persist(entity);//persist方法不能插入数据rn rnrnrn[/code]rn[b][color=#008000]service层[/color][/b]rn[code=Java]rn@Servicern@Transactional(readOnly = true, propagation = Propagation.SUPPORTS)rnpublic class MyService rnrn @Resourcern MyDAO myDAO;//继承自dao基类,此处是dao的接口rnrn @Overridern @Transactional(readOnly = false, propagation = Propagation.SUPPORTS)rn public void save(User entity) rn myDAO.save(entity);rnrn rn[/code]rnrndao层代码就不写了,只是继承了基类daornrn[b][color=#008000]控制层[/color][/b]rn[code=Java]rn@Controllerrn@RequestMapping(value = "/user")rnpublic class UserAction rn @Resourcern UserService myService;//service接口rn rn rn @RequestMapping(value = "/add")rn public String user_add(User user) rn rn myService.save(user);rn rn return "list";rn rn[/code]rn页面提交后数据无法insert 进数据库,[code=Java]factory.getCurrentSession().persist(entity);// 把persit更改为rnfactory.getCurrentSession().save(entity);[/code]插入正常。查了下说跟事务有关。不知道哪里出错了。怎么修正才能使persist插入正常
spring mvc + spring + mongodb 整合
使用spring mvc + spring data mongodb + mongodb +spring 整合,支持html压缩,支持mongodb用户登录,重写了spring的MongoTemplate支持更多方式,重写MongoTemplate支持切换数据库,支持mongodb集群。spring版本为4.1.1。lib都是齐全的。
spring mvc + spring + mybatis+json整合
NULL 博文链接:https://jayung.iteye.com/blog/1908966
spring MVC整合实例
spring mv、oracle10g数据库、使用注释版本、修改下数据源可以直接部署、
Spring mvc Mybatis整合
Spring mvc + Spring +MyBatis整合有一个用户表的增删查改操作。在文件里面有数据库表的SQL
spring mvc 3.0-mybatis-freemarker整合
spring mvc 3.0、mybatis3、freemarker2.3整合,
Spring MVC websocket整合
Spring MVC websocket整合
spring mvc 整合包
spring mvc 快速开发jar包下载。
spring mvc 整合ireport
spring mvc 整合ireport的过程以及所需要的jar包 按照配置文件进行配置就可以
spring mvc项目整合
最新 spring mybitates spring mvc
Spring MVC整合shiro
Spring MVC整合shiro,内含源代码以及JAR包,只要更改相应的数据库就能运行,程序中做了一个登陆的小例子,具体权限只要简单的设置即可实现
spring mvc整合ajax
我在页面中写好了ajax请求代码,在xxx.servlet.xml配置文件中配置好了controller的bean配置。为什么controller中响应方法不能响应ajax请求呢?[img=http://C:/Documents and Settings/Administrator/桌面/a.bmp][/img]
Spring MVC整合Mybatis
Spring MVC整合Mybatis示例,该文本与http://blog.csdn.net/geloin/article/details/7536968配套。
swagger和spring mvc整合
spring mvc mybatis整合swagger 快速生成文档
Spring MVC整合FreeMarker
NULL 博文链接:https://bijian1013.iteye.com/blog/2259056
整合Spring MVC
MyBatis是继Hibernate开发框架之后使用为广泛的实体层开发技术,在Java软件开发中开始占据着越来越重要的地位,同时也是广大的互联网公司使用多的开发框架。本课程将为读者完整的讲解MyBatis开发技术。官方QQ群:612148723。
dwr3与spring mvc的整合。
在进行spring mvc 和dwr的整合中:rn  rn 严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Cannot locate BeanDefinitionParser for element [configuration] Offending resource: ServletContext resource [/WEB-INF/applicationContext.xml]  at org.springframework.beans.factory.parsing.FailFastProblemReporter.fatal(FailFastProblemReporter.java:59)  at org.springframework.beans.factory.parsing.ReaderContext.fatal(ReaderContext.java:68)  at org.springframework.beans.factory.parsing.ReaderContext.fatal(ReaderContext.java:55)  at org.springframework.beans.factory.xml.NamespaceHandlerSupport.findParserForElement(NamespaceHandlerSupport.java:79)  at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69)  at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1297)  at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1287)  at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)  at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)  at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)  at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)  at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)  at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)  at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)  at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)  at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)  at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)  at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)  at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)  at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)  at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)  at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)  at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)  at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)  at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)  at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)  at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)  at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)  at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)  at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)  at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)  at org.apache.catalina.core.StandardService.start(StandardService.java:516)  at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)  at org.apache.catalina.startup.Catalina.start(Catalina.java:593)  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  at java.lang.reflect.Method.invoke(Method.java:597)  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) 2010-4-22 15:19:37 org.apache.catalina.core.StandardContext start 严重: Error listenerStart 2010-4-22 15:19:37 org.apache.catalina.core.StandardContext start 严重: Context [/springmvc] startup failed due to previous errors 2010-4-22 15:19:37 org.apache.catalina.core.ApplicationContext log 信息: Closing Spring root WebApplicationContext 2010-4-22 15:19:37 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 严重: A web application created a ThreadLocal with key of type [null] (value [com.sun.faces.config.ConfigureListener$1@2b323e]) and a value of type [null] (value [null]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed. 2010-4-22 15:19:37 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 严重: A web application created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [XML bean definition resources currently being loaded]) and a value of type [null] (value [null]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.rn  rn web.xml的配置为:rn http://www.w3.org/2001/XMLSchema-instance"  xmlns="http://java.sun.com/xml/ns/javaee"  xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee  http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"  id="WebApp_ID" version="2.5">rn         org.springframework.web.context.ContextLoaderListener     rn     contextConfigLocation       /WEB-INF/sample-servlet.xml,/WEB-INF/applicationContext.xml     rn     sample       org.springframework.web.servlet.DispatcherServlet      1  rn     sample   *.do  rn     sample   /dwr/*  rn  rn     Spring character encoding filter       org.springframework.web.filter.CharacterEncodingFilter          encoding    UTF-8     rn     Spring character encoding filter   /*  rn rn  rn 对应的spring的配置文件为:rn http://www.springframework.org/schema/beans"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"  xsi:schemaLocation="http://www.springframework.org/schema/beans     http://www.springframework.org/schema/beans/spring-beans-2.5.xsd     http://www.directwebremoting.org/schema/spring-dwr     http://www.directwebremoting.org/schema/spring-dwr-3.0.xsd">rn  rn  rn    class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">               dwrController     dwrController         rn rn  rn 启动tomcat 就报错了。rn  rn rn  rn  rn
spring mvc与velocity整合
spring mvc与velocity整合
spring mvc(整合了json)
该项目在以前的基础上整合了json的使用
整合mybatis和spring mvc
整合mybatis和spring mvc
patchca整合Spring MVC
Spring MVC的使用kaptcha生成验证码 patchca整合Spring MVC生成漂亮的验证码 两种验证码的生成例子。
DWR整合Spring MVC
DWR整合Spring MVC ,前端jsp文件调用后台java方法,适合DWR学习
spring MVC整合框架
user类 public class User { private Integer id; private String name; private String address; private Integer balance; @Override public String toString() { return &quot;User...
Spring mvc整合
课程包含六个部分:nn相关软件和数据库环境准备nGenerator(命令行、maven、eclipse插件)nSpring和mybatis整合nSpring和mybatis整合后测试nSpring mvc整合nSpring mvc整合后测试
SSH整合(整合Spring与Hibernate)
协同办公系统是在实际工作之中进行项目布置与监督的有效服务平台。在本课程之中主要是为读者讲解协同办公平台的项目及任务管理部分,同时也提供有资源信息共享功能。官方QQ群:612148723。
spring 整合hibernate整合方式
spring整和hibernate属于向下整合,spring的核心是管理各个类的生命周期和类与类之间的关系,所有,当提及到spring整合hibernate,就是heibinate将自己最核心的类交给spring来管理,既SessionFactory,这样一来,也相当于管理了hibernate的所有内容:包括数据源(四大基本连库信息,连接池,线程池等,),自有属性,映射文件,以下是spring整合h
ssh整合之整合hibernate和spring
配置SessionFactory在applicationContext.xml中&amp;lt;bean name=&quot;sessionFactory&quot; class=&quot;org.springframework.orm.hibernate5.LocalSessionFactoryBean&quot; &amp;gt; &amp;lt;!-- 将连接池注入到sessionFactory, hibernate会通过连接池获得连接 --&amp;gt...
spring mvc,spring,hibernate框架开发
spring mvc,spring,hibernate框架开发
spring MVC (spring hibernate huimeihui)
spring MVC (spring hibernate huimeihui) demo
spring mvc、 hibernate、 spring 整合项目源码,导入即可直接运行
spring mvc、 hibernate、 spring 整合项目源码,导入即可直接运行
Java 开源博客系统 spring mvc,hibernate,spring,maven整合开发
Java 开源博客系统 spring mvc,hibernate,spring,maven整合开发
相关热词 c# login 居中 c# 考试软件 c# 自然语言分析 c# 分段读取文件 c# 泛型反射 c#打断点 c# 时间转多少秒 c# 线程函数加参数 c# modbus 读取 c#查询集合表

相似问题

7
spring5.0 context:component-scan
10
spring boot和mybatis整合项目,测试的时候出现这个错误,哪位大神知道怎么解决
4
请问能否在Spring3.1.1版本中使用4.0中的WebSocket
7
Spring Boot 使用JPA连接MySQL数据库报错 is not mapped
6
@RestController 是spring 4.0注解还是springboot的注解?
4
eclispe整合ssm使用spring4.3.7版本,没有tx:Advice提示,报红叉
5
spring boot2.0后配置自动执行schema.sql无效
4
IntelliJ使用springboot2.0版本以上报错,2.0以下就能正常启动
2
创建容器出错'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping'
3
spring mvc 4.0.0 release版执行一个post方法报错
3
java.io.StreamCorruptedException: invalid stream header: 77327070是什么情况如何解决?
2
SpringBoot 2.1.1 在application.properties全局配置下,spring.mvc.date-format=yyyy-MM-dd 失效怎么搞
2
spring boot项目怎么实例化Hibernate的SessionFactory?
2
Spring 4.0返回Json数据的方式那种比较好?
1
spring boot2.1.2整合帆软启动项目报错
2
springboot 项目报错,可能是数据库连接的问题
1
java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available
2
javamail 接收邮件,总是报javax.mail.NoSuchProviderException: invalid provider
2
Spring boot 2.1.3启动报错 java.lang.NoClassDefFoundError: org/springframework/util/unit/DataSize
1
ssm开发过程中,tomcat启动失败,target\classes\spring-mvc.xml和spring-mybatis.xml报红