-
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
网友评论