Intellij IDEA 15.0.3 说 JdbcTemplate bean 不存在。
这是一个 Spring Boot 项目,所以所有需要的 bean 都应该在 boot.xml 中创建。它工作正常,我可以与我的数据库交互,但 IDEA 将其标记为错误。 我该如何解决?
spring-boot-starter-jdbc is in pom.xml; Facets contain Spring; Project Module has all needed dependencies; Spring boot version is 1.3.1
最佳答案
Intellij IDEA 2016.1.2后,点击Help->Edit Custom Properties,添加新行idea.spring.boot.filter.autoconfig=false
,重启IDE,即可解决问题.
详情可查看https://youtrack.jetbrains.com/issue/IDEA-139669
关于java - Intellij IDEA : No beans of 'JdbcTemplate' type found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35522308/