导入包Bean中的注释

时间:2017-07-18 14:58:20

标签: java spring javabeans

我在带有spring-boot的java中使用@Bean注释,但是找不到我需要导入的模块。

@SpringBootApplication 
public class Application {

 public static void main(String[] args) {
     SpringApplication.run(Application.class, args);
 }

 @Bean
 public PersistenceAnnotationBeanPostProcessor persistenceBeanPostProcessor() {
     return new PersistenceAnnotationBeanPostProcessor();
 } 
}

0 个答案:

没有答案