学习笔记

导航

2010年10月20日 #

junit4 注解

摘要: @RunWith(SpringJUnit4ClassRunner.class)@ContextConfiguration(locations={"classpath*:**/*Context.xml"})public class UnitServiceTest { @Autowired private UnitService unitService; 阅读全文

posted @ 2010-10-20 22:27 2狗子 阅读(165) 评论(1) 推荐(0) 编辑

redirect action

摘要: <result name="save" type="redirect">/unit/list/${ids}</result>传参ServletActionContext.getRequest().setAttribute("ids","123");ActionContext.getContext().put("ids", "123"); // it's work.... 阅读全文

posted @ 2010-10-20 22:25 2狗子 阅读(134) 评论(0) 推荐(0) 编辑