MyException - 我的异常网
当前位置:我的异常网» Java Web开发 » ,spring3 注解事务 回滚失败

香港六合彩网址大全:,spring3 注解事务 回滚失败

香港六合彩现场直播 www.hppyv.com  网友分享于:2013-02-21  浏览:470次
求助,spring3 注解事务 回滚失败
Java code
 香港六合彩现场直播 www.hppyv.com 

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="//www.springframework.org/schema/beans"
    xmlns:xsi="//www.w3.org/2001/XMLSchema-instance" xmlns:context="//www.springframework.org/schema/context"
    xmlns:jee="//www.springframework.org/schema/jee" xmlns:aop="//www.springframework.org/schema/aop"
    xmlns:tx="//www.springframework.org/schema/tx" xmlns:mvc="//www.springframework.org/schema/mvc"
    xsi:schemaLocation="
    //www.springframework.org/schema/beans
    //www.springframework.org/schema/beans/spring-beans-3.0.xsd
    //www.springframework.org/schema/context 
    //www.springframework.org/schema/context/spring-context-3.0.xsd
    //www.springframework.org/schema/jee
    //www.springframework.org/schema/jee/spring-jee-3.0.xsd
    //www.springframework.org/schema/tx
    //www.springframework.org/schema/tx/spring-tx-3.0.xsd
    //www.springframework.org/schema/aop
    //www.springframework.org/schema/aop/spring-aop-3.0.xsd
    //www.springframework.org/schema/mvc 
    //www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">

    <context:annotation-config />
    <bean id="dataSource"
        class="org.springframework.jdbc.datasource.DriverManagerDataSource">
        <property name="url">
            <value>jdbc:mysql://localhost:3306/hterp_2011?useUnicode=true&amp;characterEncoding=UTF-8
            </value>
        </property>
        <property name="driverClassName" value="com.mysql.jdbc.Driver"></property>
        <property name="username" value="root"></property>
        <property name="password" value="root"></property>
    </bean>

    <bean id="sessionFactory"
        class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
        <property name="dataSource" ref="dataSource" />

        <property name="packagesToScan" value="com.blooming.impl" />

        <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>
    </bean>


    <bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
        <property name="dataSource" ref="dataSource" />
    </bean>
    <bean id="transactionManager"
        class="org.springframework.orm.hibernate3.HibernateTransactionManager">
        
        <property name="sessionFactory" ref="sessionFactory" />
    </bean>
    <bean id="messageSource"
        class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
        <property name="basename" value="messages/messages" />
        <property name="cacheSeconds" value="0" />
    </bean>
    <context:component-scan base-package="com.blooming.impl.*" />
    <context:component-scan base-package="org.springframework.samples.mvc.basic.account"></context:component-scan>
    
    <tx:annotation-driven transaction-manager="transactionManager" proxy-target-class="true"/>

    <mvc:annotation-driven />
    <mvc:interceptors>
        <bean class="com.blooming.web.handler.UserInterceptorAdapter" />
    </mvc:interceptors>
    <bean
        class="org.springframework.web.servlet.view.ContentNegotiatingViewResolver">
        <property name="mediaTypes">
            <map>
                <entry key="html" value="text/html" />
                <entry key="json" value="application/json" />
            </map>
        </property>
    </bean>
    <bean id="multipartResolver"
        class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
        <property name="maxUploadSize" value="1000000" />
    </bean>
    <bean
        class="org.springframework.web.servlet.view.InternalResourceViewResolver">
        <property name="prefix" value="/WEB-INF/classes/views/" />
        <property name="suffix" value=".jsp" />
    </bean>
    
    
    
    <bean class="org.springframework.context.annotation.CommonAnnotationBeanPostProcessor"/>
</beans>



文章评论

软件开发程序错误异常香港六合彩现场直播Copyright © 2009-2015 MyException 版权所有
上海时时乐走势图 三肖中特期期准337888cc 3d组六4码复式多少钱 类似pc蛋蛋的赚钱平台 p3试机号今日 江西快3 200期走势图 北京11选5今日出号 内蒙古快三专家一测 6场半全场18093 重庆幸运农场漏洞是骗子吗 3d彩票组三共多少 法甲比分 北京快三预测专家推荐 江苏7位数开奖走势图表 上海快3一定牛