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

為了賬號安全,請及時綁定郵箱和手機立即綁定

幫忙看看,網上的提供方法都試過了,就是一直報錯啊

https://img1.sycdn.imooc.com//5ce25e6700017ee313240680.jpghttps://img1.sycdn.imooc.com//5ce25e760001040e07650318.jpgCaused by: org.hibernate.HibernateException: Could not instantiate connection provider [org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider]
?at org.hibernate.engine.jdbc.connections.internal.ConnectionProviderInitiator.instantiateExplicitConnectionProvider(ConnectionProviderInitiator.java:197)
?at org.hibernate.engine.jdbc.connections.internal.ConnectionProviderInitiator.initiateService(ConnectionProviderInitiator.java:120)
?at org.hibernate.engine.jdbc.connections.internal.ConnectionProviderInitiator.initiateService(ConnectionProviderInitiator.java:55)
?at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:105)
?at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:251)
?... 40 more
Caused by: java.lang.ClassCastException: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider cannot be cast to org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
?at org.hibernate.engine.jdbc.connections.internal.ConnectionProviderInitiator.instantiateExplicitConnectionProvider(ConnectionProviderInitiator.java:194)
?... 44 morehttps://img1.sycdn.imooc.com//5ce25e9000010ac515400160.jpg

正在回答

3 回答

jdbc.driver?=?com.mysql.jdbc.Driver
jdbc.url?=?jdbc:mysql:///ssh
jdbc.user?=?root
jdbc.password?=mysqladmin


0 回復 有任何疑惑可以回復我~

你可以試試


0 回復 有任何疑惑可以回復我~
<?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/aop
???http://www.springframework.org/schema/aop/spring-aop.xsd
???http://www.springframework.org/schema/tx?
???http://www.springframework.org/schema/tx/spring-tx.xsd">
???
???<!--?配置連接池:?-->
???<!--?引入外部屬性文件?-->
???<context:property-placeholder?location="classpath:jdbc.properties"/>
???<!--?配置C3P0連接池:?-->
???<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.hibernate3.LocalSessionFactoryBean">
??????<!--配置連接池-->
??????<property?name="dataSource"?ref="dataSource"/>
??????<!--配置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?>cn/muke/ssh/domain/Product.hbm.xml</value>
?????????</list>
??????</property>
???</bean>
???<!--配置事務管理-->
???<!--事務管理器-->
???<bean?id="transactionManager"?class="org.springframework.orm.hibernate3.HibernateTransactionManager">
??????<property?name="sessionFactory"?ref="sessionFactory"/>
???</bean>
???<!--開啟注解事務-->
???<tx:annotation-driven?transaction-manager="transactionManager"/>
???<!--配置action層??-->
???<bean?id="productAction"?class="cn.muke.ssh.action.ProductAction"?scope="prototype">
??????<property?name="productService"?ref="productService"></property>
???</bean>
???<!--配置service層??-->
???<bean?id="productService"?class="cn.muke.ssh.service.ProductService">
??????<property?name="productDao"?ref="productDao"></property>
???</bean>
???<!--配置dao層??-->
???<bean?id="productDao"?class="cn.muke.ssh.dao.ProductDao">
??????<property?name="sessionFactory"?ref="sessionFactory"/>
???</bean>
</beans>


0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

幫忙看看,網上的提供方法都試過了,就是一直報錯啊

我要回答 關注問題
微信客服

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

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號