框架出现异常

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
浏览器界面报错,如果代码及引用都没问题,可能缺失相关脚本库
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值