Springboot啓動一直卡在{dataSource-1} inited 如果你clean也沒有效果請點看

如果斷點沒有 clean也沒用 項目重新編譯也沒效果,ok說明已經翻了很多資料了,  如果還沒解決,運行到好好的項目怎麼突然就卡住不動了呢. 其實這種情況也不是idea的問題, 可以考慮重新開啓一個項目啓動,正常啓動的話,證明idea工具是沒有出問題的

本文如果有效還請回來點個贊,謝謝

首先 上控制檯信息

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
=================================================================================================

         大數據平臺-balabalabala

=================================================================================================
六月 28, 2020 11:37:36 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service [Tomcat]
六月 28, 2020 11:37:36 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet engine: [Apache Tomcat/9.0.31]
六月 28, 2020 11:37:36 上午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring embedded WebApplicationContext
2020-06-28 11:37:36 JRebel: Monitoring Log4j configuration in 'file:/C:/Users/15011/eclipse-workspace/bigdata_share_platform/target/classes/log4j.properties'.
{dataSource-1} inited

日誌打印已告知 SLF4J:Failed to load class "xxxxxx"  也就是第一行

問題很明顯 項目中沒有slf4j的jar

<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-simple</artifactId>
    <version>1.7.25</version>
    <scope>compile</scope>
</dependency>

放上去Ok 如果你的情況依然沒有解決,那麼不要搜{dataSource-1} inited ; 請看控制檯其他錯誤信息,還沒有解決可以評論區留言

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章