第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

基于SSH實現(xiàn)員工管理系統(tǒng)之框架整合篇-添加事務管理后啟動時有一個警告

基于SSH實現(xiàn)員工管理系統(tǒng)之框架整合篇-添加事務管理后啟動時有一個警告

云雀 2016-09-03 22:25:43
WARN ?[DTDEntityResolver.java:75] : HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!我用的是hibernate4,spring4,下面是我的配置文件<?xml?version="1.0"?encoding="UTF-8"?> <beans?xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"? xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springframework.org/schema/beans? ????????http://www.springframework.org/schema/beans/spring-beans.xsd?? ????????http://www.springframework.org/schema/context ????????http://www.springframework.org/schema/context/spring-context.xsd ????????http://www.springframework.org/schema/tx ????????http://www.springframework.org/schema/tx/spring-tx.xsd ????????http://www.springframework.org/schema/aop? ????????http://www.springframework.org/schema/aop/spring-aop.xsd"> <!--?引入外部屬性文件?--> <context:property-placeholder?location="classpath:jdbc.properties"/> <!--?配置連接池?--> <bean?id="dataSource"?class="com.mchange.v2.c3p0.ComboPooledDataSource"> <property?name="driverClass"?value="${jdbc.driver}"/> <property?name="jdbcUrl"?value="${jdbc.url}"/> <property?name="user"?value="${jdbc.user}"/> <property?name="password"?value="${jdbc.password}"/> </bean> <!--?配置hibernate相關屬性?--> <bean?id="sessionFactory"?class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"> <!--?注入連接池?--> <property?name="dataSource"?ref="dataSource"></property> <!--?配置hibernate的一些屬性?--> <property?name="hibernateProperties"> <props> <prop?key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop> <prop?key="hibernate.show_sql">true</prop> <prop?key="hibernate.format_sql">true</prop> <prop?key="hibernate.hbm2ddl.auto">update</prop> </props> </property> <!--?加載hibernate中的映射文件?--> <property?name="mappingResources"> <list> <value>com/sky/ssh/domain/Product.hbm.xml</value> </list> </property> </bean> <!--?配置Action的類?--> <bean?id="productAction"?class="com.sky.ssh.action.ProductAction"?scope="prototype"> <!--?手動注入Service?--> <property?name="productService"?ref="productService"/> </bean> <!--?配置業(yè)務層的類?--> <bean?id="productService"?class="com.sky.ssh.service.ProductService"> <property?name="productDAO"?ref="productDAO"/> </bean> <!--?配置Dao的類?--> <bean?id="productDAO"?class="com.sky.ssh.dao.ProductDAO"> <property?name="sessionFactory"?ref="sessionFactory"></property> </bean> <!--?配置事務管理器?--> <bean?id="transactionManager"?class="org.springframework.orm.hibernate4.HibernateTransactionManager"> <property?name="sessionFactory"?ref="sessionFactory"/> </bean> <!--?開啟注解事務?--> <tx:annotation-driven?transaction-manager="transactionManager"/> </beans>
查看完整描述

1 回答

  • 1 回答
  • 0 關注
  • 1371 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號