出错之后先查了一下,大家有
@Entity
导错包的,不过我这里没错
import javax.persistence.Entity;
就是这个
还有的是没有注解@Table的,我这里也是没问题的
我这个问题就比较厉害了,忘记把另一个类加到hibernate的配置文件去了
添加上之后,问题解决
原文地址:https://www.cnblogs.com/jnhs/p/11439486.html
时间: 2024-08-30 09:42:29
出错之后先查了一下,大家有
@Entity
导错包的,不过我这里没错
import javax.persistence.Entity;
就是这个
还有的是没有注解@Table的,我这里也是没问题的
我这个问题就比较厉害了,忘记把另一个类加到hibernate的配置文件去了
添加上之后,问题解决
原文地址:https://www.cnblogs.com/jnhs/p/11439486.html