Exception in thread "main" org.hibernate.MappingException: An association from the table B_USER refers to an unmapped class: com.shxt.framework.book.bo.Dict
错误:
<many-to-one name="dict" class="com.shxt.framework.book.bo.Dict" fetch="select">
<column name="U_ROLE" precision="22" scale="0" />
</many-to-one>目所示错误
正确:
<many-to-one name="dict" class="com.shxt.framework.dict.bo.Dict" fetch="select">
<column name="U_ROLE" precision="22" scale="0" />
</many-to-one>目所示错误
原因:class 路径配置错误