05 2017 档案

摘要:RedirectAttributes是SpringMVC3.1版本之后出来的一个功能,专门用于重定向之后还能带参数跳转的. 当我从jsp页面函数中带参数到controller层方法,方法执行完毕后返回到页面会显示出url地址参数信息,如果不想显示,可以考虑使用RedirectAttributes对象 阅读全文
posted @ 2017-05-24 19:16 李梦晨 阅读(13346) 评论(0) 推荐(0)
摘要:1 package cn.itcast.heima2; 2 3 /** 4 * 传统创建线程的两种方式 5 * 1. new Thread子类重写run()方法 6 * 2. new Runnable()(最常采用的方式,因为这种方式更加体现面向对象的编程) 7 * Thread线程对象,线程要运行代码,所有代码封装到Runnable线程锁中,两个对象一组合,更加... 阅读全文
posted @ 2017-05-17 00:55 李梦晨 阅读(279) 评论(0) 推荐(0)
摘要:1 package cn.test; 2 3 /** 4 * 静态方式:把字符串中第一个出现的数字的值返回 5 * 6 */ 7 public class Test { 8 public static int getNum(String str) { 9 if (str == null || str.length() == 0) 10 ... 阅读全文
posted @ 2017-05-01 22:58 李梦晨 阅读(780) 评论(0) 推荐(0)