在Idea的spring工程里,经常会遇到Could not autowire. No beans of 'xxxx' type found的错误提示。但程序的编译和运行都是没有问题的,这个错误提示并不会产生影响。
在idea 中可以正常运行,但是java -jar 脱离idea 会无法注入 mark 一下,有时间再研究!!!!
https://blog.csdn.net/ladymorgana/article/details/89312835
image.png
在Idea的spring工程里,经常会遇到Could not autowire. No beans of 'xxxx' type found的错误提示。但程序的编译和运行都是没有问题的,这个错误提示并不会产生影响。
在idea 中可以正常运行,但是java -jar 脱离idea 会无法注入 mark 一下,有时间再研究!!!!
https://blog.csdn.net/ladymorgana/article/details/89312835