1. The class org.dais.efm.vo.common.BusinessEntity is not mapped
2. The mapping is not loaded
2. The mapping is not loaded
3. The class is not in your classpath
用ssh框架的时候似乎mapping总是忘记。
如果是采用依赖注入的方式,则1可以省略,但是不要忘记在hibernate.cfg.xml中进行注册
本文探讨了在使用SSH框架时,遇到mapping配置经常忘记的问题,并提供了避免遗忘的策略。主要内容包括:确保mapping文件加载、确认类是否在类路径内、采用依赖注入方式简化配置。同时强调了在hibernate.cfg.xml中进行注册的重要性。
713

被折叠的 条评论
为什么被折叠?



