码迷,mamicode.com
首页 > 其他好文 > 详细

项目调试Bug集锦(更新中)

时间:2019-08-15 05:59:23      阅读:122      评论:0      收藏:0      [点我收藏+]

标签:审查   cte   file   res   frame   rap   jqgrid   style   for   

1.解决Error: Syntax error, unrecognized expression: #tableId‘).load(‘banner.jsp‘)

今天在搭建SpringBoot+MBG+通用Mapper+jqGrid+maven时 报的错我找了大半天 代码都审查了好多次 都没毛病 就是一直出现这个错
开发软件是:IDEA
报错信息

jquery-1.11.3.min.js:2 Uncaught Error: Syntax error, unrecognized expression: #mnn).load(/view/banner.jsp)
    at Function.ga.error (jquery-1.11.3.min.js:2)
    at ga.tokenize (jquery-1.11.3.min.js:2)
    at ga.select (jquery-1.11.3.min.js:2)
    at Function.ga [as find] (jquery-1.11.3.min.js:2)
    at m.fn.init.find (jquery-1.11.3.min.js:2)
    at new m.fn.init (jquery-1.11.3.min.js:2)
    at m (jquery-1.11.3.min.js:2)
    at HTMLAnchorElement.<anonymous> (bootstrap.min.js:6)
    at HTMLDocument.dispatch (jquery-1.11.3.min.js:4)
    at HTMLDocument.r.handle (jquery-1.11.3.min.js:4)

技术图片

解决:

2.解决Error starting ApplicationContext. To display the auto-configuration report re-runyour application

今天在搭建SpringBoot+MBG+通用Mapper+jqGrid+maven时 报的错我找了大半天 不知道那里我的配置文件代码都审查了好多次 都没毛病 就是一直出现这个错
开发软件是:IDEA
报错信息

[WARN] 2019-08-14 23:24:24 Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name bannerController: Unsatisfied dependency expressed through field bannerService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type com.baizhi.service.BannerService available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)} 
[INFO] 2019-08-14 23:24:24 Stopping service [Tomcat] 
[WARN] 2019-08-14 23:24:24 The web application [ROOT] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 java.lang.Object.wait(Native Method)
 java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
 com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43) 
[INFO] 2019-08-14 23:24:24 
Error starting ApplicationContext. To display the conditions report re-run your application with debug enabled. 
[ERROR] 2019-08-14 23:24:24 
***************************
APPLICATION FAILED TO START
***************************
Description:
Field bannerService in com.baizhi.controller.BannerController required a bean of type com.baizhi.service.BannerService that could not be found.
The injection point has the following annotations:
    - @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type com.baizhi.service.BannerService in your configuration.

技术图片

解决:
本人在网上查了好多 但是都没什么用
最后我看见一个文章说resources的配置的:application.yml 或application.properties文件扫描不到,将配置文件全部放在resources文件夹下,官方文档也建议将配置文件放在此文件夹下,但是就是找不到我的数据库配置文件,具体原因暂时还不明白。

把application.yml 或application.properties文件放在src/main/java下 就可以了

 

3.解决Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception 

Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed;

nested exception is org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size exceeded; nested exception is java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException: The field cover exceeds its maximum permitted size of 1048576 bytes.] with root cause 

 解决:

4.解决Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception

Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception

[Request processing failed; nested exception is java.lang.NullPointerException] with root cause 

 解决:

项目调试Bug集锦(更新中)

标签:审查   cte   file   res   frame   rap   jqgrid   style   for   

原文地址:https://www.cnblogs.com/xiaoyinger/p/11355663.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!