springboot中application.properties没有spring的小叶子标志解决办法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/pmdream/article/details/81198641

之前为了解决 使用@Autowired   Idea报 cant autowire  但是可以运行程序 实际没什么影响的错误

删掉了project structure 中的 spring 关联

导致了 application.properties 没有spring标志了,而且配置内容全灰(具体有没有影响在测试一下~)

于是加上spring关联即可

所以删掉了spring关联并不是个好办法解决不能自动autowire

猜你喜欢

转载自blog.csdn.net/pmdream/article/details/81198641
今日推荐