数据监控系统 框架流程图+配置文件
来源:互联网 发布:ejavashop 源码 下载 编辑:程序博客网 时间:2024/06/07 09:29
错误的通知顺序
正确的通知顺序配置
框架配置
<?xml version="1.0"?><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:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop"xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd "><!-- 组件扫描 --><context:component-scan base-package="cn.itcast.surveypark.listener,cn.itcast.surveypark.dao.impl,cn.itcast.surveypark.service.impl,cn.itcast.surveypark.struts2.action" /><!-- 分散配置 --><context:property-placeholder location="classpath:jdbc.properties"/><!-- 数据源(主库) --><bean id="dataSource_main" class="com.mchange.v2.c3p0.ComboPooledDataSource"><property name="driverClass" value="${jdbc.driverclass}" /><property name="jdbcUrl" value="${jdbc.url}" /><property name="user" value="${jdbc.username}" /><property name="password" value="${jdbc.password}" /><property name="maxPoolSize" value="${c3p0.pool.size.max}" /><property name="minPoolSize" value="${c3p0.pool.size.min}" /><property name="initialPoolSize" value="${c3p0.pool.size.ini}" /><property name="acquireIncrement" value="${c3p0.pool.size.increment}" /></bean><!-- 数据源(从库) --><bean id="dataSource_1" parent="dataSource_main"><property name="jdbcUrl" value="jdbc:mysql://localhost:3306/lsn_surveypark0909_1" /></bean><!-- 数据源路由器 --><bean id="dataSource_router" class="cn.itcast.surveypark.datasource.SurveyparkDataSourceRouter"><property name="targetDataSources"><map><entry key="odd" value-ref="dataSource_main" /><entry key="even" value-ref="dataSource_1" /></map></property><property name="defaultTargetDataSource" ref="dataSource_main" /></bean><!-- 本地会话工厂bean,spring整合hibernate的核心入口 --><bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"><!-- 注入数据源 --><property name="dataSource" ref="dataSource_router" /><!-- 指定hibernate配置文件 --><property name="configLocation" value="classpath:hibernate.cfg.xml" /><!-- 指定映射文件目录 --><property name="mappingDirectoryLocations"><list><value>classpath:cn/itcast/surveypark/domain</value></list></property></bean><!-- 事务管理器,在service层面上实现事务管理,而且达到平台无关性 --><bean id="txManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"><property name="sessionFactory" ref="sessionFactory" /></bean><!-- 配置事务通知 --><tx:advice id="txAdvice" transaction-manager="txManager"><tx:attributes><tx:method name="save*" propagation="REQUIRED" isolation="DEFAULT" /><tx:method name="update*" propagation="REQUIRED" isolation="DEFAULT" /><tx:method name="delete*" propagation="REQUIRED" isolation="DEFAULT" /><tx:method name="batch*" propagation="REQUIRED" isolation="DEFAULT" /><tx:method name="new*" propagation="REQUIRED" isolation="DEFAULT" /><tx:method name="get*" propagation="REQUIRED" isolation="DEFAULT" read-only="true"/><tx:method name="load*" propagation="REQUIRED" isolation="DEFAULT" read-only="true"/><tx:method name="find*" propagation="REQUIRED" isolation="DEFAULT" read-only="true"/><tx:method name="*" propagation="REQUIRED" isolation="DEFAULT" /></tx:attributes></tx:advice><!-- logger --><bean id="logger" class="cn.itcast.surveypark.advice.Logger"><property name="logService" ref="logService" /></bean><!-- aop事务配置 --><aop:config><!-- 事务切入点 --><aop:pointcut expression="execution(* *..*Service.*(..))" id="txPointcut"/><!-- 日志切入点 --><aop:pointcut expression="(execution(* *..*Service.save*(..))or execution(* *..*Service.update*(..))or execution(* *..*Service.delete*(..))or execution(* *..*Service.batch*(..))or execution(* *..*Service.new*(..))) and !bean(logService)" id="loggerPointcut"/><aop:advisor advice-ref="txAdvice" pointcut-ref="txPointcut" order="1"/><!-- 配置日志切面 --><aop:aspect id="loggerAspect" ref="logger" order="0"><aop:around method="record" pointcut-ref="loggerPointcut"/></aop:aspect></aop:config></beans>
- 数据监控系统 框架流程图+配置文件
- 系统流程图、数据流程图、IPO图 和甘特图
- 系统流程图,数据流程图和Ipo图的介绍
- 系统流程图 数据流图 数据字典区别
- 测试监控系统框架构想
- 监控系统获取监控数据的方式
- 系统流程图
- 系统流程图
- 数据流程图
- 数据流程图
- 数据流程图
- 数据流程图
- 数据流程图
- 数据流程图
- MVC模式数据流程图—— OpWeb框架系列[2]
- 数据流程图实例2——考务处理系统流程图
- 业务流程图 vs 数据流程图
- 图书租赁管理系统——数据流程图
- UNIX网络编程——原始套接字的魔力【续】
- hadoop:用还是不用?
- JavaScript学习之道:js跳转页面方法
- iPhone 开发--btn
- UNIX网络编程——原始套接字(dos攻击)
- 数据监控系统 框架流程图+配置文件
- JQuery学习之道:关于jquery的多个选择器例子
- iphone 开发 --问题
- 类的多态 Polymorphism
- JNI环境变量——JNIEnv*的使用
- Harmless DXGI warnings with C++ AMP
- Serving Web Content with Spring MVC
- 简单的小应用-歌曲列表添加(表单输入内容li增加到ul中)
- ibatis mybatis sql语句配置 符号不兼容 大于号 小于号<!CDATA[ ]>