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挺不錯的。

清理完斷點后,我的項目終於可以正常運行了,記錄一下避免以后重復踩坑吧。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM