`
82826200
  • 浏览: 13407 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
社区版块
存档分类
最新评论

applicationContext-common.xml

阅读更多
<?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: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-2.0.xsd
           http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
           http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">
<!-- 配置sessionFactory -->
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="configLocation">
<value>classpath:hibernate.cfg.xml</value>
</property>
</bean>          

<!-- 配置事务管理器 -->
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref bean="sessionFactory"/>
</property>
</bean>

<!-- 配置事务的传播特性 -->
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="add*" propagation="REQUIRED"/>
<tx:method name="del*" propagation="REQUIRED"/>
<tx:method name="modify*" propagation="REQUIRED"/>
<tx:method name="*" read-only="true"/>
</tx:attributes>
</tx:advice>

<!-- 那些类的哪些方法参与事务 -->
<aop:config>
<aop:pointcut id="allManagerMethod" expression="execution(* com.wuyu.usermgr.manager.*.*(..))"/>
<aop:advisor pointcut-ref="allManagerMethod" advice-ref="txAdvice"/>
</aop:config>
</beans>
分享到:
评论

相关推荐

    Struts2+Spring3+MyBatis3完整实例

    - Loading XML bean definitions from file [E:\Eclipse_C\workspace\MyStrutsTest\WebRoot\WEB-INF\classes\applicationContext-common.xml] - JSR-330 'javax.inject.Inject' annotation found and supported for ...

    SHH简单集成示例

    2、applicationContext-common.xml对dataSource修改为你的url,username,password. 3、在com.ssh.test中右键junit test 运行向数据库中自动建表,录入数据  4、部署该项目到tomcat.  5、启动tomcat,在浏览器输入...

    ExtJS 2.2图书管理系统源码(mysql版)

    使用struts2(json-plugin) + spring2 + ibatis2 + extjs2.2 + mysql5.0架构开发的图书管理系统,对学习struts2,json-plugin,spring2,ibatis2, ...* 部署时,注意修改相应的数据源配置applicationContext-common.xml

    ExtJS 2.2 制作的图书管理系统

    ExtJS 2.2 图书管理系统 注意:工程采用MyEclipse5.1+tomcat5.5 。 1.您的MSSQL2000没有打sp4补丁,会提示拒绝链接(refuse connction) ...4.记住要修改ApplicationContext-common.xml中的数据库用户名和密码:

    spring-boot-reference.pdf

    15.2. Importing XML Configuration 16. Auto-configuration 16.1. Gradually Replacing Auto-configuration 16.2. Disabling Specific Auto-configuration Classes 17. Spring Beans and Dependency Injection 18. ...

    ExtJS 2.2,图书管理系统 (Struts2+spring2+ibatis2+extjs2)

    注意:工程采用MyEclipse5.1+tomcat5.5 。...4.记住要修改ApplicationContext-common.xml中的数据库用户名和密码:) 5.如果还有问题,讨论Q_群:62150370(群1) 76202406(群2) 91986229(群3) 一起讨论

    北大青鸟学士后第三单元OA办公自动化管理系统

    hibernate.cfg.xml 是hibernate配置信息和Spring的配置分开配置再通过classpath 导入给applicationContext.xml(这两个文件本身已经没使用到了) 项目现在hibernate配置信息都写在了applicationContext-common.xml中 ...

    一个支持annotation的SSH整合示例项目

    卷 (USB)Project 的文件夹 PATH 列表 卷序列号码为 0006EE44 CCBE:F425 ... │ │ │ applicationContext.xml │ │ │ GEDA Checkstyle.xml │ │ │ gedaAppVersion.properties │ │ │ log4j.properties │ ...

    Spring 3.0+Struts2+Mybatis 3 + p6spy 平台框架

    这是自己整合的Spring 3.0+Struts2+Mybatis 3 + p6spy...如果大家不想使用p6spy跟踪SQL,可以把applicationContext_common.xml中的dataSourceImpl改成dataSource,然后把现在的P6DataSource删除即可。 祝大家使用愉快!

    fly:根据BEAN、PROPERTIES生成增删改查,可自定义功能。通过权限配置控制表现形式、数据过滤,精确到字段级别

    7、修改resource-spring-applicationContext-common.xml文件中的数据库链接8、加载到tomcat中运行9、打开链接显示登陆页面,输入admin,2,登陆成功即可。自定义1、用户类、组织类、组织用户关系类 同步主数据系统的...

    SSH2整合完整的例子(包含jar包)

    一个小例子,很适合初学者学习SSH2,对struts2.0+spring+... 其中只要修改src.com.user.cfg配置文件下applicationContext-common.xml这个里面的oralce驱动,用户名和密码,并且建表语句在docs下create_tables下。

    Struts2+Spring+Hibernate整合实例操作Mysql(源码+Jar包)(MyEclipse导入即可)

    好不容易配出来的 Hibernate的cfg文件不用配,直接Spring的applicationContext-Common.xml里改下数据库连接信息即可部署到Tomcat运行 Jar包都有了 强烈推荐

    ARCH4系统开发指南

    2.4.1.3 确认applicationContext-service.xml文件设置正确 12 2.4.2 编写使用mailService的代码 12 2.5 如何使用规则引擎 14 2.5.1 规则引擎使用说明 14 2.5.2 确保资源文件正确 14 2.5.2.1 确认applicationContext-...

    ssh进销存源码

    applicationContext_common.xml文件中修改hibernate数据库配置; 数据库为mysql,其他数据库如oracle,请自行修改。

    OA项目SSH整合框架

    1,在web.xml配置监听器(Spring Reference 15.2 Common configuration) &lt;!-- 集成Spring --&gt; &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt; &lt;context-...

    +Flex+集成到+Java+EE+应用程序的最佳实践(完整源代码)

    flex-messaging-common.jar flex-messaging-core.jar flex-messaging-proxy.jar flex-messaging-remoting.jar 在 web.xml 中添加 HttpFlexSession 和 Servlet 映射。HttpFlexSession 是 BlazeDS 提供的一...

    将 Flex 集成到 Java EE 应用程序的最佳实践(完整源代码)

    flex-messaging-common.jar flex-messaging-core.jar flex-messaging-proxy.jar flex-messaging-remoting.jar 在 web.xml 中添加 HttpFlexSession 和 Servlet 映射。HttpFlexSession 是 BlazeDS 提供的一个 ...

    JAVA SSH青协志愿服务管理系统源码.rar

    Struts+srping+Hibernate开发青协志愿服务管理系统 数据库 mysql(关系型数据库) 前台技术 JSP(css,js,ajax,el,java) ...applicationContext.xml 中心配置文件 web.xml 项目配置文件 项目一些基本配置参数

    JAVA SSH青协志愿服务管理系统源码

    Struts+srping+Hibernate开发青协志愿服务管理系统 数据库 mysql(关系型数据库) 前台技术 JSP(css,js,ajax,el,java) ...applicationContext.xml 中心配置文件 web.xml 项目配置文件 项目一些基本配置参数 127.0

    java ssh志愿服务管理系统源码

    applicationContext.xml 中心装备文件 web.xml 项目装备文件 项目一些基本装备参数 127.0.0.1:8080/zyfw/index.action 普通用户zyz1 123456 http://127.0.0.1:8080/zyfw/admin/login.jsp 管理员 a a 登陆 userLogin ...

Global site tag (gtag.js) - Google Analytics