SpringFramework(5)
来源:百度文库 编辑:神马文学网 时间:2024/04/29 12:39:37
4、元数据属性
(1)源码级别的元数据
l 编程元素的附加属性或注解:通常是类或/和方法
/*** Normal comments* @@org.springframework.transaction.interceptor.DefaultTransactionAttribute()*/public class PetStoreImpl implements PetStoreFacade, OrderService {...} /*** Normal comments* @@org.springframework.transaction.interceptor.RuleBasedTransactionAttribute()* @@org.springframework.transaction.interceptor.RollbackRuleAttribute(Exception.class)* @@org.springframework.transaction.interceptor.NoRollbackRuleAttribute("ServletException")*/public void echoException(Exception ex) throws Exception {....}
l Spring提供元数据的实现:
使用Jakarta Commons Attributes(创建过程需要一个属性编译步骤)
JSR-175(JDK 1.5)计划
l 用法:
AOP:属性用来指定Aspects
最小化Web层配置:到控制器的URL映射
验证
(1)源码级别的元数据
l 编程元素的附加属性或注解:通常是类或/和方法
/*** Normal comments* @@org.springframework.transaction.interceptor.DefaultTransactionAttribute()*/public class PetStoreImpl implements PetStoreFacade, OrderService {...} /*** Normal comments* @@org.springframework.transaction.interceptor.RuleBasedTransactionAttribute()* @@org.springframework.transaction.interceptor.RollbackRuleAttribute(Exception.class)* @@org.springframework.transaction.interceptor.NoRollbackRuleAttribute("ServletException")*/public void echoException(Exception ex) throws Exception {....}
l Spring提供元数据的实现:
使用Jakarta Commons Attributes(创建过程需要一个属性编译步骤)
JSR-175(JDK 1.5)计划
l 用法:
AOP:属性用来指定Aspects
最小化Web层配置:到控制器的URL映射
验证
SpringFramework(5)
SpringFramework(1)
SpringFramework(4)
SpringFramework(6)
SpringFramework(7)
SpringFramework(8)
SpringFramework(9)
SpringFramework(1)
SpringFramework(11) (完)
SpringFramework中的AOP简单使用
SpringFramework中文论坛 :: 阅读主题 - 分布式环境下怎样使用hiber...
(5)
5-5
5/5
5月看房5
5-3-5
5-5-2
5-5-3
5-5-4
虎5、5雨
5,,5收66
5色5气
5色5味
成语故事(5)5