0
【踩坑】Hibernate报错
source link: https://loli.fj.cn/2023/03/17/Hibernate%E6%8A%A5%E9%94%99/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
【踩坑】Hibernate报错
2023-03-17
Hibernate报错:Unknown entity: xxx
- 可能是没有将映射配置到Hibernate配置文件中
- 在
hibernate.cfg.xml
配置文件中添加实体类映射的配置
hibernate.cfg.xml
<mapping resource="com/pojo/mapping/User.hbm.xml"/>
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK