matecloud icon indicating copy to clipboard operation
matecloud copied to clipboard

Missing @Component or @Configuration on class

Open oneturkmen opened this issue 3 years ago • 0 comments

The following class uses @Bean on a field, but is missing @Component or @Configuration annotation on the class. Is it intentional?

https://github.com/matevip/matecloud/blob/52471eb8e8cfd6487c49af51a51a2274edb05322/mate-core/mate-starter-common/src/main/java/vip/mate/core/common/config/DefaultAsyncTaskConfig.java#L22

Reference: https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/context/annotation/Bean.html

oneturkmen avatar Aug 12 '21 21:08 oneturkmen