随笔分类 -  spring mvc

摘要:1 public static void responseDownloadFile(HttpServletRequest request, HttpServletResponse response, File file) throws Exception { 2 if(file != null && file.length() > 0){ 3 ... 阅读全文
posted @ 2017-08-15 14:03 kevin_shen 阅读(1360) 评论(0) 推荐(0)
摘要:Spring MVC最简单的配置 配置一个Spring MVC只需要三步: 所配置的Servlet是DispatcherServlet类型,它就是Spring MVC的入口,Spring MVC的本质就是一个Servlet。在配置DispatcherServlet的时候可以设置contextConf 阅读全文
posted @ 2017-04-27 00:03 kevin_shen 阅读(211) 评论(0) 推荐(0)