qq_Messenger_0
2017-09-30 17:15
纯净版 tomcat运行出现java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener,换了个tomcat 运行出现java.lang.ClassNotFoundException: org.springframework.web.servlet.view.json.org.springframework.web.servlet.view.json.MappingJackson2JsonView,注释掉配置文件的MappingJackson2JsonView部分就可以了,为什么
看看jackson的依赖引入了嘛
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.view.ContentNegotiatingViewResolver#0' defined in ServletContext resource [/WEB-INF/configs/spring/mvc-dispatcher-servlet.xml]: Cannot create inner bean 'org.springframework.web.servlet.view.json.MappingJackson2JsonView#25ca1a0c' of type [org.springframework.web.servlet.view.json.MappingJackson2JsonView] while setting bean property 'defaultViews' with key [0]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.web.servlet.view.json.MappingJackson2JsonView] for bean with name 'org.springframework.web.servlet.view.json.MappingJackson2JsonView#25ca1a0c' defined in ServletContext resource [/WEB-INF/configs/spring/mvc-dispatcher-servlet.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.web.servlet.view.json.MappingJackson2JsonView
org.springframework.web.servlet.view.json.org.springframework.web.servlet.view.json.MappingJackson2JsonView jar包确实没有这个,是要导入什么包
有引入的
Spring MVC起步
195972 学习 · 572 问题
相似问题