Skip to content

Publication of DataSourceSchemaCreatedEvent is more prone to creating a cycle than it was in 2.0 #14651

@cppwfs

Description

@cppwfs

Spring Boot 2.1.M3
Issue
We found a BeanCreationException using Spring Boot 2.1 while creating a Spring Cloud Task application that uses JPA. In our example a user has marked a method (which executes a JPARepository.save) with the @BeforeTask annotation that allows Spring Cloud Task to call this method prior to ApplicationRunner. Specifically the BeanCreationException occurs when Spring Cloud Task TaskLifecycleListener (ApplicationLifecycleListener impl) tries to resolve the Component that contains the JPARepository Autowire.

Discussion
Had a discussion with Andy Wilkinson and he validated the case.

To Reproduce

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions