摘要: 1.通过配置 redirect:/error.jsp 2、在controller中添加异常处理handler@ExceptionHandler(RuntimeException.class) public String exception(Ru... 阅读全文
posted @ 2015-11-13 23:46 常平 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 1、 TagSupport与BodyTagSupport的区别TagSupport与BodyTagSupport的区别主要是标签处理类是否需要与标签体交互,如果不需要交互的就用TagSupport,否则如果需要交互就用BodyTagSupport。 交互就是标签处理类是否要读取标签体的内容和改变标签... 阅读全文
posted @ 2015-11-08 22:55 常平 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 拖动事件 Box1 Link Box2 阅读全文
posted @ 2015-11-08 01:04 常平 阅读(1235) 评论(0) 推荐(0) 编辑
摘要: 1、通过HttpRequest @RequestMapping("/save.do") public String Save(HttpServletRequest request){ String userName=request.getParameter("userName"); String... 阅读全文
posted @ 2015-11-07 15:31 常平 阅读(202) 评论(0) 推荐(0) 编辑
摘要: Spring AOP 手动配置通知类前置通知import java.lang.reflect.Method;import org.springframework.aop.BeforeAdvice;public class GreetingBeforAdvice implements MethodBe... 阅读全文
posted @ 2015-11-01 01:31 常平 阅读(170) 评论(0) 推荐(0) 编辑
摘要: JDK的动态代理,只适用面向接口编程定义接口public interface UserService { public void buy(String userName); public String Say(String words);}实现类public class UserServiceImp... 阅读全文
posted @ 2015-11-01 00:24 常平 阅读(137) 评论(0) 推荐(0) 编辑
摘要: ClassLoader loader= Thread.currentThread().getContextClassLoader(); Class clz = loader.loadClass("com.easeye.test.Student"); Constructor[] con=... 阅读全文
posted @ 2015-10-14 22:39 常平 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Resource resource = new ClassPathResource("/bean.xml"); resource = new FileSystemResource("d:/tzspring02/src/bean.xml"); XmlBeanFactory xmlBeanFac... 阅读全文
posted @ 2015-10-14 22:37 常平 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 关联更新create trigger Customer_Update on Customer after update as update Customer set OrgNamePY = dbo.fun_getPY(Customer.OrgName) from Customer,deleted ... 阅读全文
posted @ 2015-07-09 15:37 常平 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Linq 实现in查询Dictionary dict = new Dictionary(); dict.Add(1, new IP("192.168.100.1", 81, 11)); dict.Add(2, new IP("192.168.100.2",... 阅读全文
posted @ 2015-07-09 15:34 常平 阅读(251) 评论(0) 推荐(0) 编辑