java - Intellij IDEA : No beans of 'JdbcTemplate' type found

标签 java spring intellij-idea spring-boot

Intellij IDEA 15.0.3 说 JdbcTemplate bean 不存在。

idea error

这是一个 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/

相关文章:

javascript - 在 PhpStorm IDE 中完成时向 JavaScript 元素添加逗号

ide - 有什么方法可以改进 IDEA 9 Community Edition Look Feel 吗?

Java Play 框架 - NoClassDefFoundError : play/Configuration

java - 泽西客户端测试

java - Hibernate 条件查询抛出异常

java - Weblogic 10.3.3/Pitchfork 中的 ClassCastException

Java文件释放资源

java - Android - sqlite in子句使用多次包含相同值的数组中的值

java - 如何为任何对象创建 JobParametersBuilder?

java - Grails 项目 - Servlet 调用 - ClassNotFoundException : javax. servlet.AsyncContext