movierecommend
movierecommend copied to clipboard
Missing @Component or @Configuration on class
The following class uses @Bean
on a field, but is missing @Component
or @Configuration
annotation on the class. Is it intentional?
https://github.com/pq-dong/movierecommend/blob/625092676e2dfb2b2ee29952a0da55deb3a548ab/src/main/java/pqdong/movie/recommend/config/ElasticSearchConfig.java#L14
Reference: https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/context/annotation/Bean.html