1.在父模块的pom.xml中配置的依赖,在子模块中引用不带版本的依赖时报version missing
Solution:将父模块的pom的依赖放在DenpendcyMananger下
2.No qualifying bean of type 'xxxx' available: expected at least 1 bean which qualifies as autowire candidate.
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'xxxx' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
- 单测启动时:解决办法:
将@AutoWire注解改为@XAutoWire(value = XAutoWire.BY_NAME, module = "xxxx")。
3.Test Ignored.
常见于单元测试的时候,一般都是H2配置的数据sql,错误导致忽略
4.格式化的容易变
5.Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.
cp /Library/Java/JavaVirtualMachines/jdk1.8.0_351.jdk/Contents/Home/lib/tools.jar /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/tools.jar