运行spring的程序报错:Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package。
但是其实我的程序中并没有调用@CompoonentScan这个组件。
解决方法:启动Spring程序的Application代码不能直接放在java程序包的下面,需要新建一个程序包,然后Application放在软件包的下面
Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package
最新推荐文章于 2024-02-11 20:52:17 发布