hibernate异常 entity class not found: /shop/src//user/vo/User.java的解决方法
来源:互联网 发布:好一点淘宝男装店铺 编辑:程序博客网 时间:2024/06/05 06:06
1. 在hibernatehbm.xml 检查你的路径 是不是写对了 /shop/src//user/vo/User.java
如果是<bean id="userAction" class="cn/itcast/shop/user/action/UserAction" scope="prototype">
这样的路径,建议修改成<bean id="userAction" class="cn.itcast.shop.user.action.UserAction" scope="prototype">
2.可以尝试清除tomcat缓存,在myeclipse下找到project ->clean就好,然后重启一下服务,eclipse下右键tomcat就看到了
3.可以找到workspace下的.metadata\.plugins\org.eclipse.wst.server.core检查你的hbm.xml 和User.java是不是在目录下
如果没有就可以重新引入项目再次编译就ok啦。
4.一定千万多检查你的配置文件 在xml中配置的文件如果出现不能打开或者找到,字段不匹配一般都是因为配置文件有错误引起的
5(感谢我舍友的脚臭把我熏到图书馆写了这篇博客)
1 0
- hibernate异常 entity class not found: /shop/src//user/vo/User.java的解决方法
- 异常:org.hibernate.MappingException: entity class not found
- org.hibernate.MappingException: Unknown entity: dxm.com.vo.User
- Unknown entity异常:org.hibernate.MappingException: Unknown entity:User findById
- org.hibernate.MappingException: entity class not found
- org.hibernate.MappingException: entity class not found
- hibernate.MappingException: entity class not found
- org.hibernate.MappingException: entity class not found
- org.hibernate.MappingException: entity class not found
- org.hibernate.MappingException: entity class not found
- User.java与User.class的区别
- java.sql.SQLException: User not found: SA
- 关于hibernate中报Duplicate class/entity mapping org.model.User错的问题
- Error Domain class not found for name User
- org.hibernate.TransientObjectException: entity.User
- hibernate 出现 org.hibernate.MappingException: entity class not found 的解决办法
- record not found or changed by another user 解决方法
- Hibernate 4 出现错误:entity class not found:Stock
- ReactNative React-native-router-flux框架---页面跳转与传值
- Android异常之Service启动Activity
- python多线程
- 转专业进搜狐经验分享
- MYSQL explain详解
- hibernate异常 entity class not found: /shop/src//user/vo/User.java的解决方法
- 关于Thinkphp3.2 命名空间的说明-php5.3命名空间介绍-TP自动加载
- Redis Hashes类型介绍
- swift项目里面导入三方框架
- TensorFlow 资源大全中文版
- Java面向对象设计模式
- HDU Robberies 2955 dp
- Oracle常用语句
- darwin拉模式设计详解