作為新手,我可以告訴大家一般犯的錯誤就是哪個小地方寫錯或者少寫了個字母之類的.......然后根據cause by后面直白的說明回去對比檢查下,一般都能檢查出來~
2017-08-24
請新手注意,排錯時像這樣子的 Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml] cause by。。。。看cause by部分的,后面對的錯誤導致前面的問題。
2017-08-24
最贊回答 / 水木星火
下面也要加<beans xmlns="http://www.springframework.org/schema/beans"??? xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"??? xmlns:context="http://www.springframework.org/schema/context"??? xsi:schemaLocation="http://www.springframework.org/schema/beans...
已采納回答 / 越阡山
照著源碼抄寫就成了打字的了
最新回答 / qq_靖_9
我看到的是別人回答的導入struts2-spring-plugin包,我之前導入的是最新的jar包,struts2-spring-plugin-2.3.34一直出現這個問題,后來重新導入struts2-spring-plugin-2.3.15.2就沒問題了,大家可以試試。終于解決了
最新回答 / 1101234567891011
我的也是這樣,不知道要怎么才好??name : MySQL?version : 5.5.56????? major : 5????? minor : 5
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'productDao' is defined
2017-08-18
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:applicationContext.xml</param-value>
</context-param>
加個*就好了。如果要把applicationContext放在src下的話。
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:applicationContext.xml</param-value>
</context-param>
加個*就好了。如果要把applicationContext放在src下的話。
2017-08-18