1–
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named ‘userDao’ is defined
检查在xml中配置dao,注入template时是否将扫描路径写错了
<context:component-scan base-package="com.xdl.dao.imp"></context:component-scan>
2–
浏览器控制台报405,method not allowed错误,而eclipse后台报Request method ‘PUT’ not supported错误
检查jsp页面中url路径带的参数是否为空
3–
listener does not currently know of SID given in connect descriptor
数据库服务没有开启
4–
Multiple annotations found at this line:
- Referenced file contains errors (http://www.springframework.org/schema/context/spring-context-4.1.xsd). For more information, right click on the message in the Problems View and select "Show
Details..."
- Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-4.1.xsd). For more information, right click on the message in the Problems View and select "Show
Details..."
- Referenced file contains errors (http://www.springframework.org/schema/tool/spring-tool-4.1.xsd). For more information, right click on the message in the Problems View and select "Show Details..."
xml文件配置报错,将spring-context的xsd文件的版本号去了就可以了
5–
Unregistering JMX-exposed beans on shutdown
在启动springboot时报这种错误,纠结了老半天,可能有两种解决方案:
(1)(2)在pom.xml文件中添加如下依赖:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
或者
但是这种我没有试验成功,第一种解决方案可以完美解决
<!-- <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency> -->
6–
3index.html:248 Uncaught ReferenceError: layer is not defined at HTMLAnchorE