04 2014 档案

摘要:实用正则org.springframework.aop.support.RegexpMethodPointcutAdvisor然后 .*_cache.* 表示拦截... 阅读全文
posted @ 2014-04-28 23:10 NewObject_1 阅读(252) 评论(0) 推荐(0)
摘要:设计时要设置好那些东东一定要输入,如果用户可以不输入,可以考虑通过程序自动填充.或数据库设计为默认是非空的,这样后面的判断会容易很多.主要是一个null的问题在java中很是烦人. 阅读全文
posted @ 2014-04-28 10:57 NewObject_1 阅读(133) 评论(0) 推荐(0)
摘要:WebApplicationContext wac = (WebApplicationContext)config.getServletContext().getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUT... 阅读全文
posted @ 2014-04-26 23:36 NewObject_1 阅读(302) 评论(0) 推荐(0)
摘要:1.ServletContextListener:监控web容器的启动和关闭2.HttpSessionListener:监控bs结构中b的session创建和session销毁3.HttpSessionBindingListener:控制bs结构中b的session中值得添加和remove.(接口中... 阅读全文
posted @ 2014-04-26 23:21 NewObject_1 阅读(778) 评论(0) 推荐(0)
摘要:springaop底层是使用jdk动态代理或cglib的动态代理实习,一般再我们需要使用aop时,定义个切面的类,类上注解@Aspect和@Component,在你的方法上注解需要的表达式接口如:@Before("execution(public * com.test.controller.*Con 阅读全文
posted @ 2014-04-26 22:03 NewObject_1 阅读(5486) 评论(0) 推荐(0)
摘要:var a = $(":input[id^=reply_]").length; 阅读全文
posted @ 2014-04-09 10:03 NewObject_1 阅读(126) 评论(0) 推荐(0)
摘要:var second = 3; function redirectUrl(){ if(second > 0 ){ setTimeout("redirectUrl()",1000); }else{ window.open("${url}","_self"); } second--; } redirectUrl(); 阅读全文
posted @ 2014-04-04 11:51 NewObject_1 阅读(888) 评论(0) 推荐(0)