spring @async causing BeanCurrentlyInCreationException


Caused by: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name '<bean name>': Bean with name '<bean name>' has been injected into other beans [<some other bean name>] in its raw version as part of a circular reference, but has eventually been wrapped. This means that said other beans do not use the final version of the bean. This is often the result of over-eager type matching - consider using 'getBeanNamesOfType' with the 'allowEagerInit' flag turned off, for example.


Autowire the beans by bean id

@Qualifier("<bean name>")
private <bean type> <var name>;

, for example

private Publisher publisher;


Popular posts from this blog

Oracle - duplicate fields in RECORD,TABLE or argument list are not permitted