【发布时间】:2015-03-25 01:39:03
【问题描述】:
自动装配和 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);
}
【问题讨论】: