会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
常平
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2015年11月13日
SpringMVC异常处理
摘要: 1.通过配置 redirect:/error.jsp 2、在controller中添加异常处理handler@ExceptionHandler(RuntimeException.class) public String exception(Ru...
阅读全文
posted @ 2015-11-13 23:46 常平
阅读(145)
评论(0)
推荐(0)
2015年11月8日
JSP自定义标签(转)
摘要: 1、 TagSupport与BodyTagSupport的区别TagSupport与BodyTagSupport的区别主要是标签处理类是否需要与标签体交互,如果不需要交互的就用TagSupport,否则如果需要交互就用BodyTagSupport。 交互就是标签处理类是否要读取标签体的内容和改变标签...
阅读全文
posted @ 2015-11-08 22:55 常平
阅读(199)
评论(0)
推荐(0)
drag事件
摘要: 拖动事件 Box1 Link Box2
阅读全文
posted @ 2015-11-08 01:04 常平
阅读(1263)
评论(0)
推荐(0)
2015年11月7日
SpringMVC参数接收
摘要: 1、通过HttpRequest @RequestMapping("/save.do") public String Save(HttpServletRequest request){ String userName=request.getParameter("userName"); String...
阅读全文
posted @ 2015-11-07 15:31 常平
阅读(213)
评论(0)
推荐(0)
2015年11月1日
Spring AOP
摘要: Spring AOP 手动配置通知类前置通知import java.lang.reflect.Method;import org.springframework.aop.BeforeAdvice;public class GreetingBeforAdvice implements MethodBe...
阅读全文
posted @ 2015-11-01 01:31 常平
阅读(176)
评论(0)
推荐(0)
Java动态代理
摘要: JDK的动态代理,只适用面向接口编程定义接口public interface UserService { public void buy(String userName); public String Say(String words);}实现类public class UserServiceImp...
阅读全文
posted @ 2015-11-01 00:24 常平
阅读(142)
评论(0)
推荐(0)
2015年10月14日
Java反射
摘要: ClassLoader loader= Thread.currentThread().getContextClassLoader(); Class clz = loader.loadClass("com.easeye.test.Student"); Constructor[] con=...
阅读全文
posted @ 2015-10-14 22:39 常平
阅读(122)
评论(0)
推荐(0)
Spring 容器初始化方法
摘要: Resource resource = new ClassPathResource("/bean.xml"); resource = new FileSystemResource("d:/tzspring02/src/bean.xml"); XmlBeanFactory xmlBeanFac...
阅读全文
posted @ 2015-10-14 22:37 常平
阅读(187)
评论(0)
推荐(0)
2015年7月9日
触发器
摘要: 关联更新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 常平
阅读(133)
评论(0)
推荐(0)
.net 实用小技巧
摘要: 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 常平
阅读(258)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告