java - ssm整合 啟動表現(xiàn)層報錯。。。
問題描述
信息: Initializing Spring FrameworkServlet ’tour-manager’五月 17, 2017 4:50:50 下午 org.apache.catalina.core.ApplicationContext log嚴(yán)重: StandardWrapper.Throwableorg.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/core/util/DefaultIndenter
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1105)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1050)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
問題解答
回答1:從報錯信息看是 項目中沒引入 https://mvnrepository.com/art... 這個庫你項目是用maven管理依賴嗎? 先把這個依賴加上去看看
相關(guān)文章:
1. android studio總是在processes running好久2. docker - 各位電腦上有多少個容器啊?容器一多,自己都搞混了,咋辦呢?3. docker不顯示端口映射呢?4. java - 請問在main方法中寫成對象名.屬性()并賦值,與直接參參數(shù)賦值輸錯誤是什么原因?5. 關(guān)docker hub上有些鏡像的tag被標(biāo)記““This image has vulnerabilities””6. MySQL數(shù)據(jù)庫中文亂碼的原因7. macos - mac下docker如何設(shè)置代理8. docker-compose 為何找不到配置文件?9. mysql - 新浪微博中的關(guān)注功能是如何設(shè)計表結(jié)構(gòu)的?10. dockerfile - 我用docker build的時候出現(xiàn)下邊問題 麻煩幫我看一下
