AOT contribution for PersistenceContext
does not check for the presence of an existing property in the related bean definition. Rather than using the configured property, it will contribute some code that tries to inject the default EMF.
See also https://github.com/spring-projects/spring-data-jpa/issues/2753
Comment From: snicoll
The same applies to autowiring (albeit being much more rare).
Comment From: rishiraj88
Thanks, @snicoll , for your comment.