自动装配和Bean检测功能不适用于我的Spring Boot应用程序。该应用程序运行良好,只是intellij无法正确检测到bean。我已经将Spring facet,hibernate facet,jpa facet添加到了模块中。
这是我的主要课程:
@SpringBootApplication
@EnableWebMvcSecurity
@ImportResource("classpath:spring/applicationContext.xml")
public class MyApplication{
public static void main(String[] args) {
SpringApplication.run(MyApplication.class, args);
}
这是IntelliJ中的一个已知错误。但是计划为14.1版本提供适当的Spring Boot支持(上次我检查此版本应该在几个月后准备好)。请查看IDEA-119230了解更多详细信息。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句