• SSM项目IEDA启动之后控制台一直输出弹出spring的debug日志


    错误信息

     在ssm项目启动后,我的idea控制台不停地输出类似如下的日志,导致我的项目无法正常处理请求:

    2020-12-07 20:28:13.202 [RMI TCP Connection(2)-127.0.0.1-219] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter'
    2020-12-07 20:28:13.203 [RMI TCP Connection(2)-127.0.0.1-467] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating instance of bean 'org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter'
    2020-12-07 20:28:13.204 [RMI TCP Connection(2)-127.0.0.1-573] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Eagerly caching bean 'org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter' to allow for resolving potential circular references
    2020-12-07 20:28:13.214 [RMI TCP Connection(2)-127.0.0.1-504] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Finished creating instance of bean 'org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter'
    2020-12-07 20:28:13.216 [RMI TCP Connection(2)-127.0.0.1-219] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter'
    2020-12-07 20:28:13.216 [RMI TCP Connection(2)-127.0.0.1-467] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating instance of bean 'org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter'
    2020-12-07 20:28:13.217 [RMI TCP Connection(2)-127.0.0.1-573] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Eagerly caching bean 'org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter' to allow for resolving potential circular references
    2020-12-07 20:28:13.227 [RMI TCP Connection(2)-127.0.0.1-504] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Finished creating instance of bean 'org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter'
    2020-12-07 20:28:13.228 [RMI TCP Connection(2)-127.0.0.1-219] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.web.servlet.view.InternalResourceViewResolver#0'
    2020-12-07 20:28:13.229 [RMI TCP Connection(2)-127.0.0.1-467] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating instance of bean 'org.springframework.web.servlet.view.InternalResourceViewResolver#0'
    2020-12-07 20:28:13.260 [RMI TCP Connection(2)-127.0.0.1-573] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Eagerly caching bean 'org.springframework.web.servlet.view.InternalResourceViewResolver#0' to allow for resolving potential circular references
    2020-12-07 20:28:13.314 [RMI TCP Connection(2)-127.0.0.1-504] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Finished creating instance of bean 'org.springframework.web.servlet.view.InternalResourceViewResolver#0'
    2020-12-07 20:28:13.314 [RMI TCP Connection(2)-127.0.0.1-255] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'messageSource'
    2020-12-07 20:28:13.316 [RMI TCP Connection(2)-127.0.0.1-219] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'localeResolver'
    2020-12-07 20:28:13.318 [RMI TCP Connection(2)-127.0.0.1-467] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating instance of bean 'localeResolver'
    2020-12-07 20:28:13.321 [RMI TCP Connection(2)-127.0.0.1-573] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Eagerly caching bean 'localeResolver' to allow for resolving potential circular references
    2020-12-07 20:28:13.369 [RMI TCP Connection(2)-127.0.0.1-504] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Finished creating instance of bean 'localeResolver'
    2020-12-07 20:28:13.369 [RMI TCP Connection(2)-127.0.0.1-255] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.springframework.web.servlet.handler.MappedInterceptor#1'
    2020-12-07 20:28:13.370 [RMI TCP Connection(2)-127.0.0.1-219] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'multipartResolver'
    2020-12-07 20:28:13.370 [RMI TCP Connection(2)-127.0.0.1-467] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating instance of bean 'multipartResolver'
    2020-12-07 20:28:13.441 [RMI TCP Connection(2)-127.0.0.1-573] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Eagerly caching bean 'multipartResolver' to allow for resolving potential circular references
    2020-12-07 20:28:13.546 [RMI TCP Connection(2)-127.0.0.1-504] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Finished creating instance of bean 'multipartResolver'
    2020-12-07 20:28:13.550 [RMI TCP Connection(2)-127.0.0.1-219] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0'
    2020-12-07 20:28:13.551 [RMI TCP Connection(2)-127.0.0.1-467] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating instance of bean 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0'
    2020-12-07 20:28:13.611 [RMI TCP Connection(2)-127.0.0.1-573] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Eagerly caching bean 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0' to allow for resolving potential circular references
    2020-12-07 20:28:13.612 [RMI TCP Connection(2)-127.0.0.1-219] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'mappingJackson2HttpMessageConverter'
    2020-12-07 20:28:13.613 [RMI TCP Connection(2)-127.0.0.1-467] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating instance of bean 'mappingJackson2HttpMessageConverter'
    2020-12-07 20:28:13.622 [RMI TCP Connection(2)-127.0.0.1-573] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Eagerly caching bean 'mappingJackson2HttpMessageConverter' to allow for resolving potential circular references
    2020-12-07 20:28:13.629 [RMI TCP Connection(2)-127.0.0.1-504] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Finished creating instance of bean 'mappingJackson2HttpMessageConverter'
    2020-12-07 20:28:13.630 [RMI TCP Connection(2)-127.0.0.1-1755] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking afterPropertiesSet() on bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0'
    2020-12-07 20:28:13.631 [RMI TCP Connection(2)-127.0.0.1-568] INFO  org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: WebApplicationContext for namespace 'SpringMVC-servlet': startup date [Mon Dec 07 20:28:07 CST 2020]; parent: Root WebApplicationContext
    2020-12-07 20:28:13.652 [RMI TCP Connection(2)-127.0.0.1-504] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Finished creating instance of bean 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0'
    2020-12-07 20:28:13.653 [RMI TCP Connection(2)-127.0.0.1-255] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'mappingJackson2HttpMessageConverter'
    2020-12-07 20:28:13.654 [RMI TCP Connection(2)-127.0.0.1-219] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor#0'
    2020-12-07 20:28:13.655 [RMI TCP Connection(2)-127.0.0.1-467] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating instance of bean 'org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor#0'
    2020-12-07 20:28:13.743 [RMI TCP Connection(2)-127.0.0.1-573] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Eagerly caching bean 'org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor#0' to allow for resolving potential circular references
    2020-12-07 20:28:13.792 [RMI TCP Connection(2)-127.0.0.1-255] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'securityManager'
    2020-12-07 20:28:13.793 [RMI TCP Connection(2)-127.0.0.1-504] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Finished creating instance of bean 'org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor#0'
    2020-12-07 20:28:13.798 [RMI TCP Connection(2)-127.0.0.1-255] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.springframework.context.event.internalEventListenerFactory'
    2020-12-07 20:28:14.018 [RMI TCP Connection(2)-127.0.0.1-791] DEBUG org.springframework.web.context.support.XmlWebApplicationContext - Unable to locate LifecycleProcessor with name 'lifecycleProcessor': using default [org.springframework.context.support.DefaultLifecycleProcessor@753d8d98]
    2020-12-07 20:28:14.019 [RMI TCP Connection(2)-127.0.0.1-255] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'lifecycleProcessor'
    2020-12-07 20:28:14.020 [RMI TCP Connection(2)-127.0.0.1-255] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'multipartResolver'
    2020-12-07 20:28:14.020 [RMI TCP Connection(2)-127.0.0.1-518] DEBUG org.springframework.web.servlet.DispatcherServlet - Using MultipartReso

    我以为是我的代码问题,最开始在博客中看到了可能是mapper映射文件的错误(诸如多了空格或者是结束标签忘了加), 比如这篇:CSDN上的博客 或 CSDN的博客

    我便仔细地比对我的所有mapper映射文件,反复核对了许久并没有出现像以上两个博客遇到的错误,导致我挠头皮挠了很久。

    如果你不是以上关于mapper映射文件的问题,那么很可能就是我所遇到的问题。

    解决方案

    最终我从csdn上找到了原因,就是因为一个断点的原因。。。我不知何时在一个service方法上面添加了断点,而这就是造成这一切的罪魁祸首。

    然后我就找断点的位置,百度找了一遍,发现我的debug窗口不见了,无法查看断点,但是百度上都是从debug窗口找到的断点列表(我也重置了窗口布局并没有用),自己摸索了一下,找到了断点列表:

     在底部工具栏的 Favorites 窗口内部有一个断点列表,没想到收藏夹居然还有断点,不得不说IDEA挺不错的。

    清理完断点后,我的项目终于可以正常运行了,记录一下避免以后重复踩坑吧。

  • 相关阅读:
    topcoder srm 445 div1
    topcoder srm 440 div1
    topcoder srm 435 div1
    topcoder srm 430 div1
    topcoder srm 400 div1
    topcoder srm 380 div1
    topcoder srm 370 div1
    topcoder srm 425 div1
    WKWebView强大的新特性
    Runtime那些事
  • 原文地址:https://www.cnblogs.com/StarChen20/p/14099586.html
Copyright © 2020-2023  润新知