在使用Spring JPA时, 启动程序时如果抛出Caused by: java.lang.IllegalArgumentException: Not a managed type: class com.xxxx.xxx 的异常, 主要是因为指定@Entity,@ID的包不是javax.persistence。 换一下引入的类就好了。
Caused by: java.lang.IllegalArgumentException: Not a managed type: class com.xxxx.xxx
最新推荐文章于 2024-04-23 21:30:55 发布