JPA entity classes and application not cause a packet error: java.lang.IllegalArgumentException: Not a managed type: class AAA

Reference article:

springboot: JPA combined with unusual Caused by: java.lang.IllegalArgumentException: Not a managed type: class xxx - Victory9477's blog - CSDN blog

----------------------------------

1, SpringBoot default scanning mode is where the entity classes classes start scanning package, so if the entity class and the application is not in the same security problems.

2, if the two are not within a packet header, an error occurs, then you need to add annotations on @EntityScan class start ( "com.boot.demo.xxx. *. *"), So as to allow application entity class already exists.

Guess you like

Origin www.cnblogs.com/StarkBrothers/p/11828709.html
Recommended