摘要:        
在写项目的时候要求根据请求的参数的不同重新将请求分发,在查阅了spring mvc的一些资料无果后(想使用拦截器去做)就没办法使用重定向的方式去写了/** * 通过访问API的方式分发请求 * * @param command * @throws IOException */ @RequestMapping("/API") public void API(@RequestParam("command") String command, HttpServletRequest request, HttpServletRes...    阅读全文
posted @ 2013-09-26 18:00
唐凯
阅读(673)
评论(0)
推荐(0)
        
            
        
        
摘要:        
public class DateCompare implements Comparator{ /** * 比较两个的日期大小 date1 > date2 返回 1 * date1 < date2 返回 -1 * */ public int compare(Date date1, Date date2) { if( date1.before(date2)){ return 1; } return -1; }}我们有的时候在比较大小的时候可能通过直接的比较比较麻烦,这...    阅读全文
posted @ 2013-09-26 09:35
唐凯
阅读(291)
评论(0)
推荐(0)
        
            
        
        
摘要:        
//目标对象 //我们上面定义的定时任务bean //目标方法 executeExportOpenAndBlackCardFiles //我们在 ExportB...    阅读全文
posted @ 2013-09-26 09:32
唐凯
阅读(621)
评论(1)
推荐(0)
        
                    
                
浙公网安备 33010602011771号