解决: Your ApplicationContext is unlikely to start due to a @ComponentScan of the default
生活随笔
收集整理的這篇文章主要介紹了
解决: Your ApplicationContext is unlikely to start due to a @ComponentScan of the default
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
前些天發現了一個巨牛的人工智能學習網站,通俗易懂,風趣幽默,忍不住分享一下給大家。點擊跳轉到教程。
用 springboot 搭一個小應用 報錯:
Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package?
原因很簡單 :
工程的啟動類(類名通常叫?Application) 文件不能直接放在 main/java 路徑下,要再新建一個 package 把他放進去。
?
?
?
總結
以上是生活随笔為你收集整理的解决: Your ApplicationContext is unlikely to start due to a @ComponentScan of the default的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 解决: cp -rf 命令中参数 -f
- 下一篇: C#-invoke与sendmessag