08-02-2023, 03:55 PM
Is it possible to inject beans to a JPA `@Entity` using Spring's dependency injection?
I attempted to @Autowire ServletContext but, while the server did start successfully, I received a NullPointerException when trying to access the bean property.
@Autowired
@Transient
ServletContext servletContext;
I attempted to @Autowire ServletContext but, while the server did start successfully, I received a NullPointerException when trying to access the bean property.
@Autowired
@Transient
ServletContext servletContext;