摘要:
@Component :标注一个普通的Spring Bean类。@Controller: 标注一个控制器组件类。@Service:标注一个业务逻辑组件类。@Repository:标注一个DAO组件类。首先要使用注解需要配置Spring自动扫描的包 将ScheduleDaoImp类注入在Spring... 阅读全文
摘要:
编写一个拦截ScheduleAction的拦截器package com.manager.interceptor;import java.util.Date;import com.manager.action.ScheduleAction;import com.opensymphony.xwork2.... 阅读全文
摘要:
s2sh的整合,首先我们新建一个项目:web项目我们加入struts2的jar包,需要如果你是struts2.2.1的话需要多加入一个javassist-3.7.ga.jar包,需要加入五个jar:commons-fileupload-1.2.1.jarcommons-logging-1.0.4.j... 阅读全文