`

Mapping directory location [ServletContext resource [/User.hbm.xml]] does not de

 
阅读更多

Mapping directory location [ServletContext resource [/User.hbm.xml]] does not denote a directory

 

解决办法:1、检查配置sessionFactory时,是否有一个property为mappingDirectoryLocations,如果有,将其改为mappingResources。

 

mapingResources是映射单个文件,而mapingDiretcoryLocations映射一堆文件,例如/*.hbm.xml。

 

2、如果1不行,直接<property name="mappingDirectoryLocations">

                                             <list>

 

                                                 <!-- <value>classpath:com/zsh/dao/*.hbm.xml</value>-->

                                                  <value>classpath:com/zsh/dao</value>

                                           </list>

                                    </property>

 

 

分享到:
评论

相关推荐

    车间信息管理lxf_GraduationProject

    &lt;mapping resource="com/briup/bean/LxfWorkshopEmployee.hbm.xml" /&gt; &lt;mapping resource="com/briup/bean/LxfWorkshopManager.hbm.xml" /&gt; &lt;mapping resource="com/briup/bean/LxfWorkshopProduct.hbm.xml" /&gt;...

    三大框架原理

    2.由hibernate.cfg.xml中的&lt;mapping resource="com/xx/User.hbm.xml"/&gt;读取并解析映射信息 3.通过config.buildSessionFactory();//创建SessionFactory 4.sessionFactory.openSession();//打开Sesssion 5.session....

    404-PageNotFound, "404 Page Not Found" 页面的精选列表.zip

    404-PageNotFound, "404 Page Not Found" 页面的精选列表 找不到 404页 那些无聊 404页的灵感库。访问画廊墙,并选择你喜欢的 !问题大多数情况下,"找不到 404"页被积压所忽略。 但我们知道 ! 事实上,你会面临...

    UE(官方下载)

    Keymapping and custom hotkeys How to customize 键映射s and menu hotkeys Column Markers The benefit of a column maker is that it can help you to format your text/code, or in some cases to make it ...

    java之webservice_aegis.xml学习

    webservice_aegis.xml配置

    Hibernate 离线的配置方法(hibernate-mapping-3.0.dtd)

    因为Hibernate在读出hbm.xml文件时需要通过网络读取到hibernate-mapping-3.0.dtd 文件。 如果没有网络不能正常工作。 所以提供上述文件。 以及hibernate-mapping-3.0.dtd,hibernate-configuration-3.0.dtd提供下载...

    hibernate小程序源码

    &lt;?xml version='1.0' encoding='UTF-8'?&gt; &lt;!DOCTYPE hibernate-configuration PUBLIC ... &lt;mapping resource="com/hope/scdd/dao/Binoutputreport.hbm.xml" /&gt; &lt;/session-factory&gt; &lt;/hibernate-configuration&gt;

    serverlet4Json

    &lt;?xml version="1.0" encoding="UTF-8"?&gt; xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee ...

    tensorflow-class-activation-mapping, 学习区分性本地化的深入特性( 2016 ).zip

    tensorflow-class-activation-mapping, 学习区分性本地化的深入特性( 2016 ) 深入了解区分性本地化的特性Tensorflow实现https://arxiv.org/abs/1512.04150如何使用它?# For Python 3. Should also work for Python2...

    SpringMVC+Hibernate全注解整合

    &lt;?xml version="1.0" encoding="UTF-8"?&gt; ... xmlns:xsi=... &lt;mvc:resources mapping="/resource/**" location="/resource/" /&gt; &lt;mvc:resources mapping="/jsp/**" location="/jsp/" /&gt; &lt;/beans&gt;

    SSH的jar包.rar

    2.由hibernate.cfg.xml中的&lt;mapping resource="com/xx/User.hbm.xml"/&gt;读取并解析映射信息 3.通过config.buildSessionFactory();//创建SessionFactory 4.sessionFactory.openSession();//打开Sesssion 5.session....

    springweb3.0MVC注解(附实例)

    &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee ...

    hibernate2

    &lt;mapping resource="cc./tukai/entity/Student.hbm.xml" /&gt; 改为 &lt;mapping class="cc.tukai.entity.Student"/&gt; 接着将Student.java文件中类的开头添加@Entity和@Table注解,将getId方法加上@Id注解。更改如下: @...

    Hibernate开发jar包

    Hibernate开发jar包 5.07 配置文件内容 &lt;?xml version="1.0" encoding="UTF-8"?... &lt;mapping resource="com/itheima/domain/Customer.hbm.xml"/&gt; &lt;/session-factory&gt; &lt;/hibernate-configuration&gt;

    com.sap.aii.mapping.api PI MAPPING开发必须jar包

    XI PI MAPPING开发必须jar包 import com.sap.aii.mapping.api.*; import com.sap.aii.mapping.api.*; import com.sap.aii.mapping.lookup.*; import com.sap.aii.mappingtool.tf7.rt.*;

    compass包及相关学习资料

    Compass是一个强大的,事务的,高性能的对象/搜索引擎映射(OSEM:object/search engine mapping)与一个Java持久层框架.内容包括compass的jar包及从网上搜集的相关学习资料. 附两个不错的资料地址: ...

    Cocos2d-x之C++和Lua通信5个入门Demo

    木头Cocos2d-x教程 Lua篇 Demo源代码。 教程地址: 第1章:http://blog.csdn.net/musicvs/article/details/8440707 第2章:http://blog.csdn.net/musicvs/article/details/8440919 第3章:...

    spring_MVC源码

    15. &lt;context:property-placeholder location="classpath:/hibernate.properties" /&gt; 16. 17. 18. class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"&gt; 19. ...

    springcloud集成flowable6.5.0适配达梦数据库的模块

    springboot集成flowable6.5.0后适配达梦数据库,详情参考https://mp.csdn.net/mp_blog/creation/editor/121616637

    hibernate-mapping-3.0.dtd

    hibernate-mapping-3.0.dtd 配置后,就会在xml中进行提示

Global site tag (gtag.js) - Google Analytics