Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij IDEA: No beans of 'JdbcTemplate' type found

Intellij IDEA 15.0.3 says that JdbcTemplate bean doesn't exist.

idea error

This is a Spring Boot project, so the all needed beans should be craeted inside of boot. It works fine and I can interact with my database but IDEA marks it like an error. How can I fix it up?

spring-boot-starter-jdbc is in pom.xml; Facets contain Spring; Project Module has all needed dependencies; Spring boot version is 1.3.1

like image 943
Alexander Kuzmenko Avatar asked Feb 20 '16 11:02

Alexander Kuzmenko


1 Answers

After Intellij IDEA 2016.1.2, click Help->Edit Custom Properties, add new line with idea.spring.boot.filter.autoconfig=false and restart IDE, then the problem can be fixed. You can check details in https://youtrack.jetbrains.com/issue/IDEA-139669

like image 176
zhouji Avatar answered Nov 02 '22 18:11

zhouji