上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 55 下一页
摘要: 基本 web.xml springMVC org.springframework.web.servlet.DispatcherServlet contextConfigLocation ... 阅读全文
posted @ 2017-04-12 23:36 2637282556 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1类中方法对应的URL请求路径有相同部分,可以放在类外面@Controller@RequestMapping("/user")public class LonginController { @RequestMapping("/login") //实际请求路径是... 阅读全文
posted @ 2017-04-12 22:58 2637282556 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 基本配置 web.xml springMVC org.springframework.web.servlet.DispatcherServlet contextConfigLocation ... 阅读全文
posted @ 2017-04-12 22:53 2637282556 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 1.默认的访问的URL都会被DispatcherServlet所拦截,比如拦截规则定义为/; 也就是说,所有的请求都会被springMVC拦截,根据HandlerMapping的配置来匹配对应的URL映射,而对于静态资源来说,默认的Spring MVC是没有注册匹配... 阅读全文
posted @ 2017-04-12 22:33 2637282556 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 基本配置: web.xml springMVC org.springframework.web.servlet.DispatcherServlet contextConfigLocati... 阅读全文
posted @ 2017-04-12 18:19 2637282556 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 基本配置: web.xml springMVC org.springframework.web.servlet.DispatcherServlet contextConfigLocation ... 阅读全文
posted @ 2017-04-12 17:26 2637282556 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 1.单级文件复制/* * 需求:将有一个单级目录下的.java 文件复制到另外一个目录中去,并修改后缀名为.txt,如果修改后的文件是已经存在的,删除旧文件 */public class Test1 { public static void main(Strin... 阅读全文
posted @ 2017-04-08 17:33 2637282556 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 高效的IO输出输出操作 字节操作//使用字节方法,将一个文件写到另外一个文件中,高效缓存,字节数组读取,建议使用public static void fileToFileByBufByteArray(String src,String dest) throws IOE... 阅读全文
posted @ 2017-04-08 15:43 2637282556 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1.定义一个接口类IHouse,接口方法toLive 2.定义一个实现类HouseImpl,实现IHouse接口重写toLive方法. 3.定义抽象装饰类IHouseDecorate,实现IHouse接口,重写toLive方法.构造方法带参数接口类IHouse。 4.... 阅读全文
posted @ 2017-04-08 15:05 2637282556 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 1.定义一个模板的抽象类House,里面有模板抽象方法 2.定义一个实现模板类LargeBuilding,该类继承House,重写House的模板抽象方法 3.测试,多态1.public abstract class House {public abstract vo... 阅读全文
posted @ 2017-04-08 11:56 2637282556 阅读(90) 评论(0) 推荐(0) 编辑
上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 55 下一页