Idea Spring 、SpringBoot相关设置技巧

1.Spring变量依赖注入出现红色波浪线

Could not autowire. No beans of 'UserMapper' type found. less... (Ctrl+F1) Checks autowiring proble

解决方案1:

将光标定位在usersMapper这个红色波浪线处,Alt+Enter,选择Inspection 'Autowiring for Bean Class' options,点开Edit inspection profile setting

解决方案2:

2.SpringBoot快速调出Run Dashboard

解决方案:关闭工程重新打开,会自动弹出如下界面,点击show run configurations in Run Dashboard

原文地址:https://www.cnblogs.com/luckyplj/p/11455938.html