struts2
文章平均质量分 52
evil19790213
这个作者很懒,什么都没留下…
展开
-
Struts2 中自定义拦截器
在Struts 2中的拦截器,要实现com.opensymphony.xwork2.interceptor.Interceptor接口,在struts.xml中配置。可以用拦截器来完成调用Action业务逻辑之前的预处理或是之后的善后处理。还可以通过配置多个拦截器来满足action需求。 com.opensymphony.xwork2.interceptor.Interceptor接口, 一...原创 2010-09-13 16:15:31 · 75 阅读 · 0 评论 -
Spring2 实现AOP编程的两种实现方法
Spring 实现AOP编程的两种实现方法 --- 1、基于注解方式进行AOP开发。2、基于XML配置方式进行AOP开发 1、基于注解方式开发AOP --- 使用注解需在applicationContext.xml中引入aop命名空间(红色部分) 定义切面,将基将于Spring进行管理,在xml中加入 @Aspect //此注解是将类声明为切...原创 2010-09-13 16:16:22 · 169 阅读 · 0 评论 -
spring1与spring2 AOP事务配置
首先了解事务的概念: 事务(Transaction)是访问并可能更新数据库中各种数据项的一个程序执行单元(unit)。事务通常由高级数据库操纵语言或编程语言(如SQL,C++或Java)书写的用户程序的执行所引起,并用形如begin transaction和end transaction语句(或函数调用)来界定。事务由事务开始(begin transaction)和事务结束(end tran...原创 2010-09-13 16:17:25 · 103 阅读 · 0 评论 -
Struts2 + Spring + Hibernate的jar包
struts:struts2-core-2.0.11.jar(核心包), xwork-2.0.4.jar(WebWork), commons-logging.jar(日志处理) freemarker.jar(页面模板) ognl.jar(ognl表达式) struts2-spring-plugin....原创 2010-09-13 16:39:05 · 140 阅读 · 0 评论