`
qq1988627
  • 浏览: 107363 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

Spring AOP 业务权限管理

 
阅读更多
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-nstance" 
	xmlns:aop="http://www.springframework.org/schema/ao"
	xmlns:tx="http://www.springframework.org/schema/tx" 
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns:jee="http://www.springframework.org/schema/jee"
	xmlns:p="http://www.springframework.org/schema/p"
	xsi:schemaLocation=" 
					    http://www.springframework.org/schema/context 
					    http://www.springframework.org/schema/context/spring-context-2.5.xsd 
					    http://www.springframework.org/schema/beans 
					    http://www.springframework.org/schema/beans/spring-beans-2.5.xsd 
					    http://www.springframework.org/schema/tx 
					    http://www.springframework.org/schema/tx/spring-tx-2.5.xsd 
					    http://www.springframework.org/schema/aop 
					    http://www.springframework.org/schema/aop/spring-aop-2.5.xsd 
					    http://www.springframework.org/schema/jee 
					    http://www.springframework.org/schema/jee/spring-jee-2.5.xsd">
	<context:component-scan base-package="com.byd.mes.dev,com.byd.mes.bussiness.service" />
          
	<!--===================================================================================
	 指定Spring配置中用到的属性文件
	====================================================================================-->
	<bean id="propertyConfigurer"
		class="com.byd.mes.util.PropertyConfigurer">
		<property name="locations" >
			<list>								
				<value>classpath:com/byd/mes/conf/jdbc@bmes_dev.properties</value>
				<value>classpath:com/byd/mes/conf/system_conf.properties</value>	
				
			</list>
		</property>
	</bean>
	<!--===================================================================================
	数据源
	====================================================================================-->	
	<!-- 业务数据库 -->	
	<bean id="dataSourceORG" class="org.apache.commons.dbcp.BasicDataSource" destroy-method ="close" 
		p:driverClassName="${mes.org.jdbc.driver}"
		p:url="${mes.org.jdbc.connectionURL}"
		p:username="${mes.org.jdbc.username}"
		p:password="${mes.org.jdbc.password}"
		/>
	<!-- 归档数据库 -->
	<bean id="dataSourceODS" class="org.apache.commons.dbcp.BasicDataSource" destroy-method ="close" 
		p:driverClassName="${mes.ods.jdbc.driver}"
		p:url="${mes.ods.jdbc.connectionURL}"
		p:username="${mes.ods.jdbc.username}"
		p:password="${mes.ods.jdbc.password}"
		/>
	<!-- 动态数据源 -->
	<bean id="dataSource" class="com.byd.mes.util.datasource.DynamicDataSource">
		<property name="targetDataSources">
			<map>
				<entry key="orgdb" value-ref="dataSourceORG"/>
				<entry key="odsdb" value-ref="dataSourceODS"/>
			</map>
		</property>
		<property name="defaultTargetDataSource" ref="dataSourceORG" />
	</bean>
	
	

	<!--===================================================================================
	ibatis配置
	====================================================================================-->
	<bean id="lobHandler"  class="org.springframework.jdbc.support.lob.DefaultLobHandler"/>   

	<bean id="sqlMapClient" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
		<property name="dataSource" ref="dataSource"></property>
		<property name="configLocation">
			<value>classpath:com/byd/mes/conf/sqlMapConfig_mes.xml</value>
		</property>
		<property name="lobHandler" ref="lobHandler"/>
	</bean>
	<!--=================================================================================== 
	定义事务管理器(声明式的事务) 
	====================================================================================-->
	<bean id="transactionManager"
		class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
		<property name="dataSource">
			<ref local="dataSource" />
		</property>
	</bean>
	<tx:advice id="txAdvice" transaction-manager="transactionManager">
		<tx:attributes>
			<tx:method name="add*" propagation="REQUIRED" timeout="60"
				read-only="false" rollback-for="Throwable" />
			<tx:method name="send*" propagation="REQUIRED" timeout="60"
				read-only="false" rollback-for="Throwable" />
			<tx:method name="save*" propagation="REQUIRED" timeout="60"
				read-only="false" rollback-for="Throwable" />
			<tx:method name="delete*" propagation="REQUIRED" timeout="60"
				read-only="false" rollback-for="Throwable" />
			<tx:method name="update*" propagation="REQUIRED" timeout="60"
				read-only="false" rollback-for="Throwable" />
			<tx:method name="imp*" propagation="REQUIRED" timeout="180"
				read-only="false" rollback-for="Throwable" />
			<tx:method name="execute*" propagation="REQUIRED" timeout="60"
				read-only="false" rollback-for="Throwable" />
		</tx:attributes>
	</tx:advice> 
	<aop:config>
		<aop:pointcut id="interceptorPointCuts"
			expression="(execution(* com.byd.mes..*ServiceImpl.*(..)))" /> 
			
		<aop:advisor 
			advice-ref="txAdvice" pointcut-ref="interceptorPointCuts" />	 
					
	</aop:config>	
	<!--=================================================================================== 
		OTHER SPRING XML
	====================================================================================-->
	<!-- 权限 -->
	<import resource="applicationContext-permission.xml" />
	<!-- 动态任务 -->
	<import resource="applicationContext-quartz.xml" />	
	
	
	<!--=================================================================================== 
		ACTION XML
	====================================================================================-->
	<!-- 主数据 action -->
	 <import resource="action_mes_main.xml"/>
	<!-- 权限action --> 
	 <import resource="action_mes_system.xml"/>
	 <!-- 现场操作管理 -->
	<import resource="action_mes_packing.xml"/>
	 <!-- 生成管理-->
	 <import resource="action_mes_production.xml"/>	 
	 <!-- 系统缓存配置-->
	 <import resource="cache_conf.xml"/>	 	 
	 
	<!--=================================================================================== 
		DAO XML
	=====================================================================================-->
	<!-- 主数据 dao-->
	<import resource="dao_mes_main.xml" />
	<!-- 权限DAO -->
	<import resource="dao_mes_system.xml" />
	<!-- POD模块DAO -->
	<import resource="dao_mes_siteoperation.xml" />
	<!-- 仓库模块DAO -->
	<import resource="dao_mes_wm.xml" />
		<!--=================================================================================== 
		SERVICE XML
	=====================================================================================-->
	<!-- 主数据 service-->
	<import resource="service_mes_main.xml" />
	<!-- 权限SERVICE -->
	<import resource="service_mes_system.xml" />
	<!-- POD模块SERVICE -->
	<!--=================================================================================== 
		OTHER XML
	=====================================================================================-->
	<!-- Applicationcontext应用Bean -->
	<bean id="beanFactory" class="com.byd.mes.util.BeanFactory" 
		p:propertyConfigurer-ref ="propertyConfigurer"/>
	
   <!--=================================================================================== 
		系统标准功能点 XML解析服务类
	=====================================================================================-->
    <bean id="standardActivityXMLParseClass" class="java.util.HashMap">
		<constructor-arg>
			<map>
				<entry key="START" value="com.byd.mes.dev.parseXml.StartActivityUtil,START" />
				<entry key="COMPLETE" value="com.byd.mes.dev.parseXml.CompleteActivityUtil,COMPLETE" />
				<entry key="NCLOG" value="com.byd.mes.dev.parseXml.NcLogCompleteActivityUtil,NCLOG" />
				<entry key="SFCDATACOLLECTION" value="com.byd.mes.dev.parseXml.DataCollectionActivityUtil,SFCDATACOLLECTION" />
				<entry key="SERIALIZE" value="com.byd.mes.dev.parseXml.SerializeActivityUtil,SERIALIZE" />
				<entry key="PASS" value="com.byd.mes.dev.parseXml.PassActivityUtil,PASS" />
			</map>
		</constructor-arg>
	</bean>	
</beans>







<?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: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.5.xsd
                           http://www.springframework.org/schema/aop 
                           http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
                           http://www.springframework.org/schema/tx 
                           http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
	<!-- ==============================================================================
	扩展相关DAO配置文件
	=============================================================================== -->
	<import resource="dao_mes_main_ext.xml"/>
	
	<!--=============================================================================
	常用JDBC操作
	===============================================================================-->
	<bean id="jdbcDAO" class="com.byd.mes.persistent.dao.JdbcDAOImpl" 
		p:dataSource-ref="dataSource">
		<property name="totalCountSqlTemplate">
			<value>
			 	<![CDATA[ 
				    SELECT COUNT(*) FROM(
				    	:SQL_STATEMENT
				    ) 
				]]>
			</value>
		</property>
		<property name="paginatorSqlTemplate">
			<value>
			 	<![CDATA[ 
				SELECT * FROM (
				    SELECT t.*,rownum rownum_ FROM (
				    	:SQL_STATEMENT
				    ) t WHERE rownum <= :END_INDEX
				) t WHERE t.rownum_ >= :START_INDEX 
				]]>
			</value>
		</property>
	</bean>
	<!--=============================================================================
	DAO
	===============================================================================-->
	<!-- 客户 -->
	<bean id="customerDAO" class="com.byd.mes.persistent.dao.main.impl.CustomerDAOImpl">
		<constructor-arg ref="sqlMapClient" />
	</bean>
	<!-- 用户 -->
	<!--  
	<bean id="userDAO" class="com.byd.mes.persistent.dao.main.impl.UserDAOImpl">
		<constructor-arg ref="sqlMapClient" />
	</bean>
	--> 
	<!-- 状态 -->
	<bean id="statusDAO" class="com.byd.mes.persistent.dao.main.impl.StatusDAOImpl"
		p:cacheManager-ref="mesCacheManager">
		<constructor-arg ref="sqlMapClient" />
	</bean> 
	<!-- 客户订单 -->
	<bean id="customerOrderDAO" class="com.byd.mes.persistent.dao.main.impl.CustomerOrderDAOImpl">
		<constructor-arg ref="sqlMapClient" />
 </beans>

<?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: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.5.xsd
                           http://www.springframework.org/schema/aop 
                           http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
                           http://www.springframework.org/schema/tx 
                           http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
	<!-- ==============================================================================
	业务相关SERVICE配置文件
	=============================================================================== -->
	<!-- 级联CRUD操作 -->
	<import resource="service_mes_main_ext.xml" />
	<!--===============================================================================	
	SERVICE
	=================================================================================-->
	<!--组件代替关系-->
	<bean id="alternateComponentService" class="com.byd.mes.bussiness.service.main.impl.AlternateComponentServiceImpl"
		p:alternateComponentDAO-ref="alternateComponentDAO"
		p:bomHandle-ref="bomHandle"/>
	<!-- 物料清单-->
	<bean id="bomService" class="com.byd.mes.bussiness.service.main.impl.BomServiceImpl"
		p:bomDAO-ref="bomDAO"
		p:bomHandle-ref="bomHandle"
		p:customDataHandle-ref="customDataHandle"
		p:statusService-ref="statusService"
		p:listKindService-ref="listKindService"
		p:maskGroupService-ref="maskGroupService"
		p:mesLocksService-ref="mesLocksService"
		p:statusGrant="1"/>

	<!-- 物料清单组件-->
	<bean id="bomComponentService" class="com.byd.mes.bussiness.service.main.impl.BomComponentServiceImpl"
		p:bomComponentDAO-ref="bomComponentDAO"
		p:bomHandle-ref="bomHandle"
		p:listKindService-ref="listKindService"
		p:maskGroupService-ref="maskGroupService"/>
	<!-- 类别管理-->
	<bean id="categoryService" class="com.byd.mes.bussiness.service.main.impl.CategoryServiceImpl"
		p:categoryDAO-ref="categoryDAO"
		p:categoryHandle-ref="categoryHandle"
		p:cacheManager-ref="mesCacheManager"/>
	<!--自定义字段-->
	<bean id="customerDataInsService" class="com.byd.mes.bussiness.service.main.impl.CustomDataInsServiceImpl"
		p:customDataInsDAO-ref="customDataInsDAO"
		p:mesLocksService-ref="mesLocksService"
		p:customDataHandle-ref="customDataHandle"/>
	<!-- 自定义数据配置-->
	<bean id="customDataService" class="com.byd.mes.bussiness.service.main.impl.CustomDataServiceImpl"
		p:customDataDAO-ref="customDataDAO"
		p:customDataHandle-ref="customDataHandle"/>
	<!-- 客户 -->
	<bean id="customerService" class="com.byd.mes.bussiness.service.main.impl.CustomerServiceImpl"
		p:customerDAO-ref="customerDAO"
		p:mesLocksService-ref="mesLocksService"
		p:customerHandle-ref="customerHandle"/>
	<!-- 客户定单 -->
	<bean id="customerOrderService" class="com.byd.mes.bussiness.service.main.impl.CustomerOrderServiceImpl"
		p:customerOrderDAO-ref="customerOrderDAO"
		p:mesLocksService-ref="mesLocksService"
		p:customerHandle-ref="customerHandle"/>
	<!-- 客户订单明细 -->
	<bean id="customerOrderItemService" class="com.byd.mes.bussiness.service.main.impl.CustomerOrderItemServiceImpl"
		p:customerOrderItemDAO-ref="customerOrderItemDAO"
		p:customerHandle-ref="customerHandle"/>
	<!--  数据类型 --> 
    <bean id="dataTypeService" class="com.byd.mes.bussiness.service.main.impl.DataTypeServiceImpl"
        p:dataTypeDAO-ref="dataTypeDAO"
        p:dataTypeHandle-ref="dataTypeHandle"/> 
    <!--  数据类型明细 --> 
    <bean id="dataTypeItemService" class="com.byd.mes.bussiness.service.main.impl.DataTypeItemServiceImpl"
        p:dataTypeItemDAO-ref="dataTypeItemDAO"/> 
	<!--物料收集组-->
	<bean id="dcGroupAttacthService" class="com.byd.mes.bussiness.service.main.impl.DcGroupAttacthServiceImpl"
		p:dCGroupAttachDAO-ref="dCGroupAttachDAO"
		p:dcGroupHandle-ref="dcGroupHandle"/>
    <!-- 数据收集组-->
	<bean id="dcGroupService" class="com.byd.mes.bussiness.service.main.impl.DcGroupServiceImpl"
		p:dCGroupDAO-ref="dCGroupDAO"
		p:dcGroupHandle-ref="dcGroupHandle"
		p:systemRuleHandle-ref="systemRuleHandle"
		p:mesLocksService-ref="mesLocksService"
		p:customDataHandle-ref="customDataHandle"/>
	<!--参数收集组-->
	<bean id="dcParameterService" class="com.byd.mes.bussiness.service.main.impl.DcParameterServiceImpl"
		p:dCParameterDAO-ref="dCParameterDAO"
		p:dcGroupHandle-ref="dcGroupHandle"
		p:maskGroupDAO-ref="maskGroupDAO"/>
	<!--处置功能-->
	<bean id="dispositionFunctionService" class="com.byd.mes.bussiness.service.main.impl.DispositionFunctionServiceImpl"
		p:dispositionFunctionDAO-ref="dispositionFunctionDAO"
		p:dispositionHandle-ref="dispositionHandle"/>
	<!--处置组成员-->
	<bean id="dispositionGroupMemberService" class="com.byd.mes.bussiness.service.main.impl.DispositionGroupMemberServiceImpl"
		p:dispositionGroupMemberDAO-ref="dispositionGroupMemberDAO"
		p:dispositionHandle-ref="dispositionHandle"/>
	<!--处置组-->
		<!--物料组 -->
	<bean id="itemGroupService" class="com.byd.mes.bussiness.service.main.impl.ItemGroupServiceImpl"
		p:itemGroupDAO-ref="itemGroupDAO"
		p:itemHandle-ref="itemHandle"
		p:mesLocksService-ref="mesLocksService"
		p:customDataHandle-ref="customDataHandle"/>
	<!-- 物料-->
	<bean id="itemService" class="com.byd.mes.bussiness.service.main.impl.ItemServiceImpl"
		p:itemDAO-ref="itemDAO"
		p:itemUnitDAO-ref="itemUnitDAO"
		p:itemHandle-ref="itemHandle"
		p:systemRuleHandle-ref="systemRuleHandle"
		p:statusService-ref="statusService"
		p:dataTypeHandle-ref="dataTypeHandle"
		p:customDataHandle-ref="customDataHandle"
		p:categoryService-ref="categoryService"
		p:mesLocksService-ref="mesLocksService"
		p:statusGrant="1"
		p:statusHold="4"
		p:orgMaterials="1"
		p:finishedProduct="2"
		p:halfGrown="3"
		p:inSorag="1"
		p:outSorag="2"/>
	<!-- 物料单位转换-->
	<bean id="itemUnitConversionService" class="com.byd.mes.bussiness.service.main.impl.ItemUnitConversionServiceImpl"
		p:itemUnitConversionDAO-ref="itemUnitConversionDAO"
		p:itemHandle-ref="itemHandle"/>
	<!-- 物料单位-->
	<bean id="itemUnitService" class="com.byd.mes.bussiness.service.main.impl.ItemUnitServiceImpl"
		p:itemUnitDAO-ref="itemUnitDAO"
		p:itemHandle-ref="itemHandle"/>
	<!--列表栏配置-->
	<bean id="listColumnConfigService" class="com.byd.mes.bussiness.service.main.impl.ListColumnConfigServiceImpl"
		p:listColumnConfigDAO-ref="listColumnConfigDAO"
		p:listKindHandle-ref="listKindHandle"/>
	<!--列表栏-->
	<bean id="listColumnService" class="com.byd.mes.bussiness.service.main.impl.ListColumnServiceImpl"
		p:listColumnDAO-ref="listColumnDAO"
		p:listKindHandle-ref="listKindHandle"/>
	<!--列表配置-->
	<bean id="listConfigService" class="com.byd.mes.bussiness.service.main.impl.ListConfigServiceImpl"
		p:listConfigDAO-ref="listConfigDAO"
		p:mesLocksService-ref="mesLocksService"
		p:listKindHandle-ref="listKindHandle"/>
	<!--列表参数配置-->
	<bean id="listConfigValuesService" class="com.byd.mes.bussiness.service.main.impl.ListConfigValuesServiceImpl"
		p:listConfigValuesDAO-ref="listConfigValuesDAO"
		p:listKindHandle-ref="listKindHandle"/>
	<!--列表类别-->
	<bean id="listKindService" class="com.byd.mes.bussiness.service.main.impl.ListKindServiceImpl"
		p:listKindDAO-ref="listKindDAO"
		p:jdbcDAO-ref="jdbcDAO"
		p:mesLocksService-ref="mesLocksService"
		p:listParameterDAO-ref="listParameterDAO"
		p:listKindHandle-ref="listKindHandle"/>
	<!--列表参数-->
	<bean id="listParameterService" class="com.byd.mes.bussiness.service.main.impl.ListParameterServiceImpl"
		p:listParameterDAO-ref="listParameterDAO"
		p:listKindHandle-ref="listKindHandle"/>
	<!--列表类型-->
	<bean id="listTypeService" class="com.byd.mes.bussiness.service.main.impl.ListTypeServiceImpl"
		p:listTypeDAO-ref="listTypeDAO"
		p:listKindHandle-ref="listKindHandle"/>
	<!--设备、设备类型关联-->
	<bean id="machineRefMachineTypeService" class="com.byd.mes.bussiness.service.main.impl.MachineRefMachineTypeServiceImpl"
		p:machineRefMachineTypeDAO-ref="machineRefMachineTypeDAO"
		p:machineHandle-ref="machineHandle"/> 
	<!--设备-->
	<bean id="machineService" class="com.byd.mes.bussiness.service.main.impl.MachineServiceImpl"
		p:machineDAO-ref="machineDAO"
		p:machineHandle-ref="machineHandle"
		p:mesLocksService-ref="mesLocksService"
		p:systemRuleHandle-ref="systemRuleHandle"
		p:customDataHandle-ref="customDataHandle"/> 
	<!--设备状态-->
	<bean id="machineStatusService" class="com.byd.mes.bussiness.service.main.impl.MachineStatusServiceImpl"
		p:machineStatusDAO-ref="machineStatusDAO"
		p:machineHandle-ref="machineHandle"/> 
	<!--设备类型-->
	<bean id="machineTypeService" class="com.byd.mes.bussiness.service.main.impl.MachineTypeServiceImpl"
		p:machineTypeDAO-ref="machineTypeDAO"
		p:machineHandle-ref="machineHandle"
		p:mesLocksService-ref="mesLocksService"
		p:customDataHandle-ref="customDataHandle"/> 
	<!--验证掩码组--> 
    <bean id="maskGroupService" class="com.byd.mes.bussiness.service.main.impl.MaskGroupServiceImpl"
        p:maskGroupDAO-ref="maskGroupDAO"
        p:maskGroupHandle-ref="maskGroupHandle"
        p:maskGroupMemberDAO-ref="maskGroupMemberDAO"/> 
    <!--验证掩码组设置--> 
    <bean id="maskGroupMemberService" class="com.byd.mes.bussiness.service.main.impl.MaskGroupMemberServiceImpl"
        p:maskGroupMemberDAO-ref="maskGroupMemberDAO"
        p:maskGroupHandle-ref="maskGroupHandle"/> 
	<!--不良代码 -->
	<bean id="ncCodeService" class="com.byd.mes.bussiness.service.main.impl.NcCodeServiceImpl"
		p:ncCodeDAO-ref="ncCodeDAO"
		p:ncHandle-ref="ncHandle"
		p:mesLocksService-ref="mesLocksService"
		p:activityPothookHandle-ref="activityPothookHandle"
		p:customDataHandle-ref="customDataHandle"/> 
	<!--处置工艺路线 -->
	<bean id="ncDispRouterService" class="com.byd.mes.bussiness.service.main.impl.NcDispRouterServiceImpl"
		p:ncDispRouterDAO-ref="ncDispRouterDAO"
		p:ncHandle-ref="ncHandle"/>
	<!-- 不良代码组成员 -->
	<bean id="ncGroupMemberService" class="com.byd.mes.bussiness.service.main.impl.NcGroupMemberServiceImpl"
		p:ncGroupMemberDAO-ref="ncGroupMemberDAO"
		p:ncHandle-ref="ncHandle"/>
	<!-- 不良代码组 -->
	<bean id="ncGroupService" class="com.byd.mes.bussiness.service.main.impl.NcGroupServiceImpl"
		p:ncGroupDAO-ref="ncGroupDAO"
		p:mesLocksService-ref="mesLocksService"
		p:ncHandle-ref="ncHandle"/>
	<!-- 资源、处置组 -->
	<bean id="ncResourceDispService" class="com.byd.mes.bussiness.service.main.impl.NcResourceDispServiceImpl"
		p:ncResourceDispDAO-ref="ncResourceDispDAO"/>
	<!-- 次要不良代码 -->
	<bean id="nCSecondaryCodeService" class="com.byd.mes.bussiness.service.main.impl.NCSecondaryCodeServiceImpl"
		p:ncSecondaryCodeDAO-ref="ncSecondaryCodeDAO"
		p:ncHandle-ref="ncHandle"/>
	<!-- 下一编号-->
	<bean id="nextNumberService" class="com.byd.mes.bussiness.service.main.impl.NextNumberServiceImpl" 
		p:nextNumberHandle-ref="nextNumberHandle"
		p:mesLocksService-ref="mesLocksService"
		p:nextNumberDAO-ref="nextNumberDAO"
		p:cacheManager-ref="mesCacheManager"/>
	<!-- 工段、工序分配-->
	<bean id="operationSectRefOperationService" class="com.byd.mes.bussiness.service.main.impl.OperationSectRefOperationServiceImpl"
		p:operationSectRefOperationDAO-ref="operationSectRefOperationDAO"
		p:operationHandle-ref="operationHandle"/>
	<!--工段 -->
	<bean id="operationSectService" class="com.byd.mes.bussiness.service.main.impl.OperationSectServiceImpl"
		p:operationSectDAO-ref="operationSectDAO"
		p:mesLocksService-ref="mesLocksService"
		p:operationHandle-ref="operationHandle"
		p:customDataHandle-ref="customDataHandle"/>
	<!--工序 -->
	<bean id="operationService" class="com.byd.mes.bussiness.service.main.impl.OperationServiceImpl"
		p:operationDAO-ref="operationDAO"
		p:operationHandle-ref="operationHandle"
		p:activityPothookHandle-ref="activityPothookHandle"
		p:customDataHandle-ref="customDataHandle"
		p:statusService-ref="statusService"
		p:mesLocksService-ref="mesLocksService"
		
		p:statusGrant="1"/>
		<!--p:workFlowService-ref="workFlowService"  -->
	<!--资源不良代码-->
	<bean id="resourceNcService" class="com.byd.mes.bussiness.service.main.impl.ResourceNcServiceImpl"
		p:resourceNcDAO-ref="resourceNcDAO"
		p:ncHandle-ref="ncHandle"/>
	<!--产品数量收集 -->
	<bean id="resourceRefProdDcService" class="com.byd.mes.bussiness.service.main.impl.ResourceRefProdDcServiceImpl"
		p:resourceRefProdDcDAO-ref="resourceRefProdDcDAO"
		p:resourceHandle-ref="resourceHandle"/>
	<!--产品抽检 -->
	<bean id="resourceRefProdRandomQCService" class="com.byd.mes.bussiness.service.main.impl.ResourceRefProdRandomQCServiceImpl"
		p:resourceRefProdRandomQcDAO-ref="resourceRefProdRandomQcDAO"
		p:resourceHandle-ref="resourceHandle"/>
	<!--样品测试 -->
	<bean id="resourceRefProdSampTestService" class="com.byd.mes.bussiness.service.main.impl.ResourceRefProdSampTestServiceImpl"
		p:resourceRefProdSampTestDAO-ref="resourceRefProdSampTestDAO"
		p:resourceHandle-ref="resourceHandle"/>
	<!--资源-->
	<bean id="mesResourceService" class="com.byd.mes.bussiness.service.main.impl.ResourceServiceImpl"
		p:resourceDAO-ref="resourceDAO"
		p:resourceHandle-ref="resourceHandle"
		p:activityPothookHandle-ref="activityPothookHandle"
		p:customDataHandle-ref="customDataHandle"
		p:systemRuleHandle-ref="systemRuleHandle"
		p:mesLocksService-ref="mesLocksService"
		p:statusService-ref="statusService"
		p:statusUsing="1,4,5,6"/>
	<!--资源、资源类型相关联-->
	<bean id="resourceTypeResourceService" class="com.byd.mes.bussiness.service.main.impl.ResourceTypeResourceServiceImpl"
		p:resourceTypeResourceDAO-ref="resourceTypeResourceDAO"
		p:resourceHandle-ref="resourceHandle"/>
	<!--资源类型-->
	<bean id="resourceTypeService" class="com.byd.mes.bussiness.service.main.impl.ResourceTypeServiceImpl"
		p:resourceTypeDAO-ref="resourceTypeDAO"
		p:resourceHandle-ref="resourceHandle"
		p:mesLocksService-ref="mesLocksService"
		p:customDataHandle-ref="customDataHandle"/>
	<!--工艺路线-->
	<bean id="routerService" class="com.byd.mes.bussiness.service.main.impl.RouterServiceImpl"
		p:routerDAO-ref="routerDAO"
		p:routerHandle-ref="routerHandle"
		p:statusService-ref="statusService"
		p:mesLocksService-ref="mesLocksService"
		p:customDataHandle-ref="customDataHandle"
		p:statusGrant="1"/>
	<!--工单 -->
	<bean id="shopOrderService" class="com.byd.mes.bussiness.service.main.impl.ShopOrderServiceImpl"
		p:shopOrderDAO-ref="shopOrderDAO"
		p:shopOrderHandle-ref="shopOrderHandle"
		p:statusService-ref="statusService"
		p:mesLocksService-ref="mesLocksService"
		p:categoryService-ref="categoryService"
		p:routerHandle-ref="routerHandle"
		p:customDataHandle-ref="customDataHandle"
		p:categroyProduct="1"
		p:categroyReProduction="2"
		p:categroyUntread="3"
		p:listKindService-ref="listKindService"
		p:itemService-ref="itemService"
		p:activityInfoService-ref="activityInfoService"
		p:nextNumberService-ref="nextNumberService"
		p:executeActivityService-ref="executeActivityService"
		
		p:statusGrant="1"/>
	<!--工单物料需求 -->
	<bean id="shopOrderMrpService" class="com.byd.mes.bussiness.service.main.impl.ShopOrderMrpServiceImpl"
		p:shopOrderMrpDAO-ref="shopOrderMrpDAO"
		p:shopOrderHandle-ref="shopOrderHandle"/>
	<!--站点-->
	<bean id="siteService" class="com.byd.mes.bussiness.service.main.impl.SiteServiceImpl"
		p:siteDAO-ref="siteDAO"
		p:siteHandle-ref="siteHandle"
		p:cacheManager-ref="mesCacheManager"/>
	<!-- 状态 -->
	<bean id="statusService" class="com.byd.mes.bussiness.service.main.impl.StatusServiceImpl"
		p:statusDAO-ref="statusDAO"
		p:statusHandle-ref="statusHandle"
		p:cacheManager-ref="mesCacheManager"/>
	<!-- 系统规则组 -->
	<bean id="systemRuleGroupService" class="com.byd.mes.bussiness.service.main.impl.SystemRuleGroupServiceImpl"
		p:systemRuleGroupDAO-ref="systemRuleGroupDAO"
		p:systemRuleHandle-ref="systemRuleHandle"/>
	<!--私有系统规则设定-->
	<bean id="systemRuleOverrideService" class="com.byd.mes.bussiness.service.main.impl.SystemRuleOverrideServiceImpl"
		p:systemRuleOverridDAO-ref="systemRuleOverridDAO"
		p:systemRuleHandle-ref="systemRuleHandle"/>
	<!-- 系统规则 -->
	<bean id="systemRuleService" class="com.byd.mes.bussiness.service.main.impl.SystemRuleServiceImpl"
		p:systemRuleDAO-ref="systemRuleDAO"/>
	<!--系统规则全局设定-->
	<bean id="systemRuleSettingService" class="com.byd.mes.bussiness.service.main.impl.SystemRuleSettingServiceImpl"
		p:systemRuleSettingDAO-ref="systemRuleSettingDAO"
		p:systemRuleHandle-ref="systemRuleHandle"/>
	<!-- 供应商 -->
	<bean id="vendorService" class="com.byd.mes.bussiness.service.main.impl.VendorServiceImpl"
		p:vendorDAO-ref="vendorDAO"
		p:mesLocksService-ref="mesLocksService"
		p:vendorHandle-ref="vendorHandle"/>
	<!-- 供应商组件 -->
	<bean id="vendorComponentService" class="com.byd.mes.bussiness.service.main.impl.VendorComponentServiceImpl"
		p:vendorComponentDAO-ref="vendorComponentDAO"
		p:vendorHandle-ref="vendorHandle"/>
	<!--工作中心-->
	<bean id="workCenterService" class="com.byd.mes.bussiness.service.main.impl.WorkCenterServiceImpl"
		p:workCenterDAO-ref="workCenterDAO"
		p:workCenterHandle-ref="workCenterHandle"
		p:mesLocksService-ref="mesLocksService"
		p:customDataHandle-ref="customDataHandle"/>
	<!--工作中心成员-->
	<bean id="workCenterMemberService" class="com.byd.mes.bussiness.service.main.impl.WorkCenterMemberServiceImpl"
		p:workCenterHandle-ref="workCenterHandle"
		p:workCenterMemberDAO-ref="workCenterMemberDAO"/>
	<!--工序活动挂接-->
	<bean id="activityPothookService" class="com.byd.mes.bussiness.service.main.impl.ActivityPothookServiceImpl"
		p:activityPothookDAO-ref="activityPothookDAO"/>
	<!--物料组不良代码-->
	<bean id="itemGroupRefNcCodeService" class="com.byd.mes.bussiness.service.main.impl.ItemGroupRefNcCodeServiceImpl"
		p:itemGroupRefNcCodeDAO-ref="itemGroupRefNcCodeDAO"
		p:ncHandle-ref="ncHandle"/>
	<!--物料面板-->
<bean id="itemPanelService" class="com.byd.mes.bussiness.service.main.impl.ItemPanelServiceImpl"
		p:itemPanelDAO-ref="itemPanelDAO"
		p:itemHandle-ref="itemHandle"/>
	<!--sfc数据收集-->
	<bean id="dcGroupInsService" class="com.byd.mes.bussiness.service.siteoperation.datacollection.impl.DcGroupInsServiceImpl"
		p:dcGroupInsDAO-ref="dcGroupInsDAO" 
		p:dcGroupInsItemDAO-ref="dcGroupInsItemDAO"
		p:sfcInfoService-ref="sfcInfoService"
		p:itemService-ref="itemService"
		p:shopOrderService-ref="shopOrderService"
		p:resourceService-ref="mesResourceService"
		p:dcParameterService-ref="dcParameterService"
		p:maskGroupService-ref="maskGroupService"/>
	<!-- 退货验证车间工单 -->
	<bean id="rmaNumberService" class="com.byd.mes.bussiness.service.main.impl.RmaNumberServiceImpl">
		<property name="rmaNumberDAO" ref="rmaNmuberDAO"/>
		<property name="rmaNumberHandle" ref="rmaNumberHandle"/>
		<property name="rmaDataDAO" ref="rmaDataDAO"/>
		<property name="rmaDataService" ref="rmaDataService"/>
	</bean>
	<!-- 退货验证sfc接收 -->
	<bean id="rmaDataService" class="com.byd.mes.bussiness.service.main.impl.RmaDataServiceImpl">
		<property name="rmaDataDAO" ref="rmaDataDAO"/>
		<property name="rmaDataHandle" ref="rmaDataHandle"/>
	</bean>
</beans>

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
	<!--测试范例-->
	<package name="test" namespace="/test" extends="struts-default">
		<action name="base" class="testCustomer">
		</action>
	</package>
	<!--客户维护  -->
	<package name="customerMaintenance" namespace="/views/masterData/customer/customerMaintenance"
		extends="struts-default">
		<action name="customerMaintenanceAction" class="customerMaintenance">
		</action>
	</package>
	<!-- 客户订单维护 -->
	<package name="customerOrderMaintenance"
		namespace="/views/masterData/customer/customerOrderMaintenance"
		extends="struts-default">
		<action name="customerOrderMaintenanceAction" class="customerOrderMaintenance">
		</action>
	</package>
	<!-- 客户订单明细维护 -->
	<package name="customerOrderItemMaintenance"
		namespace="/views/masterData/customer/customerOrderItemMaintenance"
		extends="struts-default">
		<action name="customerOrderItemMaintenanceAction" class="customerOrderItemMaintenance">
		</action>
	</package>
	<!-- 供应商 -->
	<package name="vendorMaintenance" namespace="/views/masterData/vendor"
		extends="struts-default">
		<action name="vendorMaintenanceAction" class="vendorMaintenance">
		</action>
	</package>
	<!-- 供应商组件 -->
	<package name="vendorComponentMaintenance" namespace="/views/masterData/vendorComponent"
		extends="struts-default">
		<action name="vendorComponentMaintenanceAction" class="vendorComponentMaintenance">
		</action>
	</package>
	<!-- 物料 -->
	<package name="itemMaintenance"
		namespace="/views/masterData/producingMasterData/itemMaintenance"
		extends="struts-default">
		<action name="itemMaintenanceAction" class="itemMaintenance">
			<result name="success">/views/masterData/item/itemList.jsp</result>
		</action>
	</package>
	<!-- 物料组 -->
	<package name="itemGroupMaintenance"
		namespace="/views/masterData/producingMasterData/itemGroupMaintenance"
		extends="struts-default">
		<action name="itemGroupMaintenanceAction" class="itemGroupMaintenance">
			<result name="success">views/packing/package/packagingPODMaintenance/index.jsp</result>
		</action>
	</package>
	<!--工段  -->
	<package name="operationSectMaintenance" namespace="/views/masterData/operationSect"
		extends="struts-default">
		<action name="operationSectMaintenanceAction" class="operationSectMaintenance">
		</action>
	</package>
	<!-- 数据类型维护 -->
	<package name="dataTypeMaintenance" namespace="/views/masterData/parameter"
		extends="struts-default">
		<action name="dataTypeMaintenanceAction" class="dataTypeMaintenance"></action>
	</package>
	<!--
		=================================================================================
		===============================工艺路线====================================
		====================================================================
	-->
	<package name="routerMaintenance"
		namespace="/views/masterData/producingMasterData/routerMaintenance"
		extends="struts-default">
		<action name="routerMaintenanceAction" class="routerMaintenance">
		</action>
	</package>
	<!-- 工序 -->
	<package name="operationMaintenance"
		namespace="/views/masterData/producingMasterData/operationMaitenance"
		extends="struts-default">
		<action name="operationAction" class="operationMaintenance">
			<result name="success">/views/masterData/producingMasterData/operationMaitenance/index.jsp</result>
		</action>
	</package>

	<!-- 设备类型 -->
	<package name="machineTypeMaintenance" namespace="/views/masterData/machineType"
		extends="struts-default">
		<action name="machineTypeAction" class="machineTypeMaintenance"></action>
	</package>

	<!-- 资源类型 -->
	<package name="resourceTypeMaintenance" namespace="/views/masterData/resourceType"
		extends="struts-default">
		<action name="resourceTypeAction" class="resourceTypeMaintenance">
			<result name="success">/views/masterData/producingMasterData/resourceTypeMaitenance/index.jsp</result>
		</action>
	</package>

	<!--不良代码 -->
	<package name="ncCodeMaintenance" namespace="/views/masterData/nc/ncCodeMaintenance"
		extends="struts-default">
		<action name="ncCodeAction" class="ncCodeMaintenance">
		</action>
	</package>

	<!--不良代码组 -->
	<package name="ncGroupMaintenance" namespace="/views/masterData/nc/ncGroupMaintenance"
		extends="struts-default">
		<action name="ncGroupAction" class="ncGroupMaintenance">
		</action>
	</package>

	<!--工作中心维护-->
	<package name="workCenterMaintenance" namespace="/views/masterData/producingMasterData/workCenterMaintenance" 
		extends="struts-default">
		<action name="workCenterAction" class="workCenterMaintenance">
		</action>
	</package>
	<!--设备 -->
	<package name="machineMaintenance"
		namespace="/views/masterData/producingMasterData/machineMaintenance"
		extends="struts-default">
		<action name="machineAction" class="machineMaintenance">
		</action>
	</package>

	<!--设备 状态-->
	<package name="machineStatusMaintenance"
		namespace="/views/masterData/producingMasterData/machineStatusMaintenance"
		extends="struts-default">
		<action name="machineStatusAction" class="machineStatusMaintenance">
		</action>
	</package>
	<!--资源 -->
	<package name="resourceMaintenance"
		namespace="/views/masterData/producingMasterData/resourcetMaintenance"
		extends="struts-default">
		<action name="resourceAction" class="resourcetMaintenance">
		</action>
	</package>

	<!--公共列表 -->
	<package name="masterDataPublicList"
		namespace="/views/masterData/producingMasterData/publicList" extends="struts-default">
		<action name="masterDataPublicListAction" class="masterDataPublicList">
		</action>
	</package>
	<!--公共模块 -->
	<package name="masterDataPublicModel"
		namespace="/views/masterData/public/publicFragment" extends="struts-default">
		<action name="masterDataPublicModelAction" class="masterDataPublicModel">
		</action>
	</package>
	<!--ecn -->
	<package name="ecnMaintenance"
		namespace="/views/masterData/public/publicFragment/ecnMaintenance"
		extends="struts-default">
		<action name="ecnAction" class="ecnMaintenance">
		</action>
	</package>
	<!--自定义字段-->
	<package name="customDataMaintenance"
		namespace="/views/masterData/public/publicFragment/customDataInsMaintenance"
		extends="struts-default">
		<action name="customDataInsAction" class="customDataInsMaintenance">
		</action>
		<action name="customDataAction" class="customDataMaintenance">
		</action>
	</package>
	<!--私有系统规则设定-->
	<package name="sysRuleOverrideMaintenance"
		namespace="/views/masterData/public/publicFragment/sysRuleOverrideMaintenance"
		extends="struts-default">
		<action name="sysRuleOverrideAction" class="sysRuleOverrideMaintenance">
		</action>
	</package>
	<!-- 物料清单 -->
	<package name="bomMaintenance"
		namespace="/views/masterData/producingMasterData/bomMaintenance"
		extends="struts-default">
		<action name="bomMaintenanceAction" class="bomMaintenance">
		</action>
	</package>
	<!-- 工单 -->
	<package name="shopOrderMaintenance"
		namespace="/views/masterData/shopOrder/shopOrderMaintenance" extends="struts-default">
		<action name="shopOrderMaintenanceAction" class="shopOrderMaintenance">
		</action>
	</package>
	<!--工单与物料需求  -->
	<package name="shopOrderMrpMaintenance"
		namespace="/views/masterData/shopOrder/shopOrderMrpMaintenance"
		extends="struts-default">
		<action name="shopOrderMrpMaintenanceAction" class="shopOrderMrpMaintenance">
		</action>
	</package>
	<!--数据收集组-->
	<package name="dcGroupMaintenance" namespace="/views/masterData/parameter/dcGroupMaintenance"
		extends="struts-default">
		<action name="dcGroupAction" class="dcGroupMaintenance">  
		</action>
	</package>
	<package name="listMaintenance" namespace="/views/masterData/list/listMaintenance"
		extends="struts-default">
		<!-- 列表设置 -->
		<action name="listMaintenance" class="listMaintenance" />
		
		<!-- 列表维护-->
		<action name="listConfigMaintenance" class="listConfigMaintenance" method="initListConfigLoad">
			<result name="success">/views/masterData/list/listConfigMaintenance/index.jsp</result>
		</action>
	</package>
	<!-- 库存调整 -->
	<package name="storageAdjustMaintenance" namespace="/views/wm/storage/storageAdjust"
		extends="struts-default">
		<action name="storageAdjustAction" class="storageAdjustMaintenance">
		</action>
	</package>
	<!--系统维护  -->
	<package name="systemMaintenance" namespace="/views/masterData/systemRule" extends="struts-default">
		<action name="systemMaintenance" class="systemMaintenance">
			<result name="success">/views/masterData/systemRule/systemRuleDetial.jsp</result>
			<result name="doSuccess">/views/masterData/systemRule/systemRuleFragment.jsp</result>
			<result name="saveSuccess">/views/masterData/systemRule/index.jsp</result>
		</action>
	</package>
	<!--SITE维护  -->
	<package name="siteMaintenance" namespace="/views/system/site/siteMaintenance" extends="struts-default">
		<action name="siteMaintenanceAction" class="siteMaintenance"></action>
	</package>
	
	<!--NEXT_NUMBER 维护  -->
	<package name="nextNumberMaintenance" namespace="/views/masterData/nextNumber/nextNumberMaintenance" extends="struts-default">
		<action name="nextNumberMaintenanceAction" class="nextNumberMaintenance"></action>
	</package>
	<!--DISPOSITION 维护  -->
	<package name="dispositionMaintenance" namespace="/views/masterData/dispositionFunction/dispositionFunctionMaintenance" extends="struts-default">
		<action name="dispositionGroupMaintenanceAction" class="dispositionGroupMaintenance"></action>
	</package>
	<!--MASKGROUP 维护  -->
	<package name="maskMaintenance" namespace="/views/masterData/maskGroup/maskGroupMaintenance" extends="struts-default">
		<action name="maskGroupMaintenanceAction" class="maskGroupMaintenance"></action>
	</package>
	<!--PageUtilsAction 文件上传  -->
	<package name="pageUtilsAction" namespace="/views/system/utils" extends="struts-default">
		<action name="pageUtilsAction" class="pageUtilsAction"></action>
	</package>
	<package name="uploadingAction" namespace="/views/system/fileImport" extends="struts-default">
		<action name="uploadingAction" class="uploadingAction"></action>
	</package>
	<!-- 退货验证车间工单 -->
	<package name="rmaNumber"  namespace="/views/masterData/rmaShopOrderReceipt" extends="struts-default">
		<action name="rmaNumberAction" class="rmaNumber">
			<result name="SUCCESS">/views/masterData/rmaShopOrderReceipt/shopOrder.jsp</result>
		</action>
	</package>
</struts>
 

 

分享到:
评论

相关推荐

    Spring AOP实现机制

    Spring AOP(面向切面编程)是Spring框架的核心特性之一,它允许程序员在不修改源代码的情况下,通过“切面”来插入额外的业务逻辑,如日志、事务管理等。AOP的引入极大地提高了代码的可复用性和可维护性。 ### 1. ...

    使用SpringAop使用Oracle数据权限控制

    Spring AOP(面向切面编程)是一个强大的工具,常用于实现业务逻辑中的横切关注点,如日志、事务管理以及我们的案例——数据权限控制。本篇将深入探讨如何结合Spring AOP和Oracle数据库来实现精细化的数据权限控制。...

    spring aop权限小实例

    总结起来,Spring AOP提供了一种优雅的方式来处理权限控制和其他横切关注点,通过切面和通知的组合,可以在不侵入业务逻辑的情况下实现功能。在上述实例中,我们学习了如何定义切面、创建通知以及配置切入点,这些都...

    spring aop spring aop

    总的来说,Spring AOP提供了一种优雅的方式来管理横切关注点,使代码更整洁,降低了模块间的耦合。在实际开发中,它可以用于日志记录、权限控制、事务管理等多个场景,极大地提高了代码的可维护性和复用性。

    spring aop 学习笔记

    Spring AOP(面向切面编程)是Spring框架的重要组成部分,它提供了一种模块化和抽象化的方法来处理系统中的交叉关注点,如日志、事务管理、安全性等。本学习笔记将深入探讨Spring AOP的核心概念、工作原理以及实际...

    spring aop管理xml版

    在Spring框架中,面向切面编程(Aspect Oriented Programming,简称AOP)是一种重要的设计模式,它扩展了传统的面向对象编程(OOP),使得我们可以将关注点分离,特别是那些横切关注点,如日志、事务管理、权限检查...

    Spring AOP简单demo

    3. **安全控制**:检查权限,防止未经授权的访问。 4. **日志记录**:记录操作信息,便于追踪和调试。 5. **缓存管理**:在方法调用前检查是否有缓存结果,避免重复计算。 6. **错误处理**:统一处理异常,提供...

    spring aop所需jar包

    - 安全控制:检查用户权限,确保只有授权用户才能访问特定资源。 - 性能监控:在关键方法周围添加计时器,以跟踪性能瓶颈。 - 事务管理:确保数据库操作在正确的情况下提交或回滚,无需在业务代码中显式处理。 6...

    spring AOP的运用

    总的来说,Spring AOP提供了一种优雅的方式来处理横切关注点,使得业务代码更专注于核心功能,提高了代码的可读性和可维护性。通过源码学习和实际操作,我们可以更好地理解和利用这一强大的特性。

    SpringAOP.rar_springAOP

    其中,Spring AOP(Aspect Oriented Programming,面向切面编程)是Spring框架的重要组成部分,它为开发者提供了在不侵入业务代码的情况下,进行日志记录、性能监控、事务管理等横切关注点的能力。本文将深入探讨...

    Spring Aop使用实例

    总的来说,Spring AOP提供了一种灵活的方式,让我们可以在不侵入核心业务代码的情况下,添加和管理横切关注点,提高了代码的可复用性和可维护性。在实际开发中,合理地运用Spring AOP,可以显著提高项目的质量和开发...

    SpringAOP.zip

    Spring AOP,全称为Aspect Oriented Programming,是Spring框架中的一个重要模块,主要负责处理系统中的...文件"5.SpringAOP_01"和"6.SpringAOP_02"很可能是课程的分阶段内容,涵盖了从基础概念到进阶实践的详细讲解。

    spring aop 附带测试实例

    在提供的压缩包文件"springAOP"中,可能包含了以下内容: - **切面类(Aspect Class)**:包含切点和通知的Java类,可能使用了`@Aspect`注解。 - **目标类(Target Class)**:被AOP代理的对象,通常包含业务逻辑。...

    springAop默认代理方式.zip

    8. **AOP应用场景**:Spring AOP广泛应用于日志记录、事务管理、权限控制、缓存管理等场景。通过切面可以将这些通用功能与业务逻辑解耦,提高代码的可维护性和可重用性。 总之,Spring AOP的默认代理方式是动态代理...

    Spring AOP学习资料(pdf)

    **Spring AOP**(面向切面编程)是Spring框架中的一个重要组成部分,它通过预定义的切入点来分离关注点,使得核心业务逻辑更加清晰,同时能够方便地管理诸如日志记录、性能统计、安全控制、事务处理等横切关注点。...

    spring aop

    在Web项目中,Spring AOP通常用于处理跨多个控制器和业务层方法的通用任务,如记录请求日志、验证权限、事务管理等。通过配置或注解,你可以确保这些逻辑在每次相关方法执行时自动触发,从而提高代码的可读性和可...

    第3章 Spring AOP.ppt

    AOP在企业级应用中广泛应用于事务管理、权限控制、日志记录、性能监控等方面。通过AOP,开发者可以将这些通用功能抽取成切面,然后在合适的时候(切点)插入到业务逻辑中,使得业务代码更加简洁,专注于核心业务逻辑...

    spring之AOP(动态代理)

    在Spring框架中,AOP(面向切面编程)是一种强大的设计模式,它允许开发者将关注点分离,将横切关注点(如日志、事务管理、权限检查等)与核心业务逻辑解耦。AOP的核心概念是切面、通知、连接点、切入点和织入。在...

    spring AOP注解的应用1

    在Spring框架中,AOP(面向切面编程)是一种强大的工具,它允许程序员将关注点分离,例如日志记录、事务管理、权限检查等,从核心业务逻辑中解耦出来。本篇主要探讨的是如何利用Spring AOP的注解来实现这些功能,...

Global site tag (gtag.js) - Google Analytics