在使用Spring JPA时, 启动程序时如果抛出Caused by: java.lang.IllegalArgumentException: Not a managed type: class com.xxxx.xxx 的异常, 主要是因为指定@Entity,@ID的包不是javax.persistence。 换一下引入的类就好了。
时间:2019-05-24 11:56:28
在使用Spring JPA时, 启动程序时如果抛出Caused by: java.lang.IllegalArgumentException: Not a managed type: class com.xxxx.xxx 的异常, 主要是因为指定@Entity,@ID的包不是javax.persistence。 换一下引入的类就好了。