通过spring提供的jndi获取数据源

上传人:xiao****1972 文档编号:84786253 上传时间:2019-03-04 格式:DOC 页数:2 大小:29.50KB
返回 下载 相关 举报
通过spring提供的jndi获取数据源_第1页
第1页 / 共2页
通过spring提供的jndi获取数据源_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

《通过spring提供的jndi获取数据源》由会员分享,可在线阅读,更多相关《通过spring提供的jndi获取数据源(2页珍藏版)》请在金锄头文库上搜索。

通过Spring提供的jndi获取数据源(Web容器创建的数据源)Tomcat 帮助文档中 拷贝添加 属性auth=Container 表示数据源由tomcat容器产生然后粘贴到 tomcat conf context.xml 根节点下修改driverClassName , url, username, password等属性值把 对应的数据库的驱动包 添加到tomcat lib文件夹下在spring 配置文件中 编写 得到tomcat容器产生的 数据源!-jdbc/conndb 参考tomcat conf 文件夹下context.xml 中配置的节点的name 属性值- com/yyjc/spring/entity/UserInfo.hbm.xmlcom/yyjc/spring/entity/Product.hbm.xml hibernate.dialect=org.hibernate.dialect.SQLServerDialecthibernate.show_sql=truehibernate.format_sql=true

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 大杂烩/其它

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号