[英]Spring 3 MVC Validation with Hibernate, error after hasErrors?
我只是在學習Hibernate的Spring3驗證。 我有這個課程,但是我正在設置以下錯誤
org.hibernate.MappingException:未知實體:com.stutteringjohnsmith.model.Friend
我做從樣本
http://www.roseindia.net/tutorial/spring/spring3/web/spring-3-mvc-and-hibernate3-example-part1.html
但我將文章更改為朋友! 請幫幫我
最有可能的問題是,仍然有在代碼中的“條”尚未更新為“朋友”的參考。 我會嘗試在所有文件中搜索“文章”,並根據需要進行更新。 你已經改變了<property name="annotatedClasses">
部分中的dispatcher-servlet.xml
的示例文件?
您可能還需要接受回答您的問題,否則它可能把人關幫助你擺脫困境!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.