使用Intellij IDEA创建SpringBoot项目的学习中出现了如下这个错误,Google和Baidu了各种解决方案,都没解决,
代码也看了N遍,感觉没错误啊??!!
偶然一个机会,我发现了可能是JDK的版本导致的。
我使用的是JDK11的,后来我改成了1.8,这样就可以了。我猜可能是有些组件不支持11吧。
Field appMessageMapper in com.example.mybatis.test.AppMessageService required a bean of type 'com.example.mybatis.test.AppMessageMapper' that could not be found
参照:https://blog.csdn.net/zyhlwzy/article/details/78730587