Could not autowire. No beans of 'xxxx' type found
可以用以下几个方法解决
1 修改idea
Preferences | Editor | Inspections | Spring | Spring Core | Code | Autowiring for bean class
改Severity: Error为Severity: Warning
2 使用@Resource替换@Autowired
3@Autowired(required = false)取消代码自动折叠
Preferences | Editor | General | Code Folding
取消勾选One-line methods忽略
.idea隐藏文件
Preferences | Editor | File Types
Ignored Files and Folders添加*.idea配色
Preferences | Editor | Color Scheme | Java
将原始配色Darcula拷贝一份,执行duplicate...
| scheme | Foreground |
|---|---|
| Class | 97C16D |
| Interface | 97C16D |
| Static method | 75C4AC |
| Method declaration | 75C4AC |
| Method call | 75C4AC |
- 提示忽略大小写
Preferences | Editor | General | Code Completion
去掉打勾Match case