<?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:p="http://www.springframework.org/schema/p"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd"> <bean id="txManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="hibernateSessionFactory" />
</bean>
<tx:annotation-driven transaction-manager="txManager" />
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver">
</property>
<property name="url" value="jdbc:mysql://localhost:3306/ant1k">
</property>
<property name="username" value="ant1k"></property>
<property name="password" value="67173181"></property>
</bean>
<bean id="hibernateSessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.MySQLDialect
</prop>
<prop key="show_sql">true</prop>
<prop key="current_session_context_class">thread</prop>
<prop key="format_sql">true</prop>
<prop key="hbm2ddl.auto">update</prop>
</props>
</property>
<property name="mappingDirectoryLocations">
<list>
<value>file:src</value>
</list>
</property>
</bean>
</beans>
<bean id="txManager"
在此行报错 class="org.springframework.orm.hibernate3.HibernateTransactionManager">
build path is incomplete.Cannot find class file for org/hibernate/HibernateException开发环境是myeclipse
已导入了spring core, jdbc persistence, persistence core, aop libraries我不明白为什么报错 怎样解决 求高手解答!!
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd"> <bean id="txManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="hibernateSessionFactory" />
</bean>
<tx:annotation-driven transaction-manager="txManager" />
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver">
</property>
<property name="url" value="jdbc:mysql://localhost:3306/ant1k">
</property>
<property name="username" value="ant1k"></property>
<property name="password" value="67173181"></property>
</bean>
<bean id="hibernateSessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.MySQLDialect
</prop>
<prop key="show_sql">true</prop>
<prop key="current_session_context_class">thread</prop>
<prop key="format_sql">true</prop>
<prop key="hbm2ddl.auto">update</prop>
</props>
</property>
<property name="mappingDirectoryLocations">
<list>
<value>file:src</value>
</list>
</property>
</bean>
</beans>
<bean id="txManager"
在此行报错 class="org.springframework.orm.hibernate3.HibernateTransactionManager">
build path is incomplete.Cannot find class file for org/hibernate/HibernateException开发环境是myeclipse
已导入了spring core, jdbc persistence, persistence core, aop libraries我不明白为什么报错 怎样解决 求高手解答!!
解决方案 »
- 【老话题--Tomcat当机常见的情况有哪些??】
- DataSource释放connection问题
- struts2 这样用标签格式化人名币 如:¥1,000,000.00 在线等!
- 在类中怎么才能使用request等对象?
- tomcat5.5下有webwork标签报这个错误
- 求教一个关于onclick()的参数问题!!!急!!!
- session
- tomcat内存处理
- 那位高手有空,请进来看看,一定给分.
- 请问高手用jdbc-odbc怎么不能连接数据库呢!!!提示信息如下:
- java折线统计图
- 2011-03-18 17:24:44,687 ERROR [com.garage.xsystem.EncryptService] - 字符串解密出现异常
<list>
<value>file:src</value>
</list>配置有问题
你想通过它来加载什么?