I have a @Service
that has 4 classes @Autowired
. 2 of them appear to be concrete classes, but the other 2 are EnhancedBySpringCGLIB
.
The 2 that are CGLIB proxied both have some methods with annotations, such as @Transactional
, @Async
, @Scheduled
, is this why they are proxied in this way?
Why are the attributes on these beans all null? I can put a breakpoint into those classes and see them populated on startup, but by the time they are injected into my service they are blank.
I have checked ApplicationContext
, there is only 1 bean created.
I'm using spring boot 2.4.2