Springaopxml configuration Meaning
<!--2 <bean id= "TransactionManager" 3 class= "Org.springframework.jdbc.datasource.DataSourceTransactionManager" > 4 <property name= "DataSource" ref= "Jamon-proxy-datasource" ></property> 5 </bean> 6 -7<!--Transaction Notification -8<Tx:adviceID= "Txadvice"Transaction-manager= "TransactionManager">9<tx:attributes>Ten<Tx:methodname= "add*"Propagation= "REQUIRED"rollback-for= "Exception,smoexception,bmoexception,daoexception" /> One<Tx:methodname= "del*"Propagation= "REQUIRED"rollback-for= "Exception,smoexception,bmoexception,daoexception" /> A<Tx:methodname= "upd*"Propagation= "REQUIRED"rollback-for= "Exception,smoexception,bmoexception,daoexception" /> -<Tx:methodname="*"Propagation= "SUPPORTS"read-only= "true" /> -</tx:attributes> the</Tx:advice> -<!--Spring AOP Config 17 explains (* com.evan.crm.service.*.* (..)) The meaning of several wildcard characters: 18 The first *--pass with any return value type 19 The second *--Pass package Com.evan.crm.service any CLASS20 under the third *--pass package Com.evan.crm.service any CL An arbitrary method of the 21-four: --A wildcard method can have 0 or more parameters - at<Aop:config> -<Aop:pointcutID= "Servicespointcut"expression= "Execution (* COM.JSTRD.MSS). *smoimpl.* (..)) " /> -<Aop:advisorAdvice-ref= "Blueprint.txadvice"Pointcut-ref= "Servicespointcut" /> -</Aop:config> -</Beans>
View Code
"Spring Source analysis" Design for cutting-plane programming architecture