上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页

2019年3月13日

spring mvc-@CookieValue注解

摘要: https://www.cnblogs.com/caoyc/p/5635517.html @CookieValue的作用: 用来获取cookie中的值; @CookieValue参数: 1、value:参数名称; 2、required:是否必须; 3、defaultValue:默认值。 @Cooki 阅读全文

posted @ 2019-03-13 15:39 arrows 阅读(401) 评论(0) 推荐(0)

spring mvc-@RequestParam

摘要: https://www.cnblogs.com/caoyc/p/5635427.html 案例说明: 测试1: 当我们请求路径为:http://localhost:8080/springmvc-1/user/add?name=zhangsan&age=18 输出结果:zhangsan,18 测试2: 阅读全文

posted @ 2019-03-13 15:23 arrows 阅读(95) 评论(0) 推荐(0)

spring mvc-REST

摘要: https://www.cnblogs.com/caoyc/p/5635354.html REST风格: /user/1 get请求 获取用户 /user/1 post请求 新增用户 /user/1 put请求 更新用户 /user/1 delete请求 删除用户 在Spring mvc中如何提交p 阅读全文

posted @ 2019-03-13 14:46 arrows 阅读(158) 评论(0) 推荐(0)

spring mvc-@PathVariable注解

摘要: https://www.cnblogs.com/caoyc/p/5635300.html 下面用代码来演示@PathVariable传参方式: @RequestMapping("/user/{id}") public String test(@PathVariable("id") Integer i 阅读全文

posted @ 2019-03-13 14:12 arrows 阅读(1151) 评论(0) 推荐(0)

spring mvc -@RequestMapping注解详解

摘要: https://www.cnblogs.com/caoyc/p/5635173.html @RequestMapping参数说明: value:定义处理方法的请求的URL地址(重点); method:定义处理方法的http method类型,如GEt、POST等。(重点) params:定义请求的U 阅读全文

posted @ 2019-03-13 10:48 arrows 阅读(255) 评论(0) 推荐(0)

spring mvc入门示例

摘要: https://www.cnblogs.com/caoyc/p/5635101.html 1、新建一个Java Web项目 2、导入jar包 【 【在WEB-INF下面建一个hello.jsp页面】 【配置web.xml文件】 【配置spring-mvc.xml文件】 【配置控制器】 】 3、在WE 阅读全文

posted @ 2019-03-13 10:15 arrows 阅读(158) 评论(0) 推荐(0)

spring mvc向前台页面传值-ModelAndView

摘要: https://www.cnblogs.com/caoyc/p/5635782.html ModelAndView 该对象中包含了一个model属性和一个view属性; model:其实是一个ModelMap类型。ModelMap是一个LinkedHashMap的子类。 view:包含了一些视图信息 阅读全文

posted @ 2019-03-13 09:56 arrows 阅读(1414) 评论(0) 推荐(0)

2019年3月12日

maven资源文件的相关配置

摘要: https://www.cnblogs.com/pixy/p/4798089.html https://blog.csdn.net/u011900448/article/details/78281269 https://www.cnblogs.com/hi-feng/p/7892724.html m 阅读全文

posted @ 2019-03-12 17:49 arrows 阅读(144) 评论(0) 推荐(0)

servlet-url-pattern匹配规则详细描述

摘要: https://www.cnblogs.com/51kata/p/5152400.html 一、概述 在利用servlet或Filter进行url请求的匹配时,很关键的一点就是匹配规则,但servlet容器中的匹配规则既不是简单的通配,也不是正则表达式,而是由自己的规则,比较容易混淆。本文来详细举例 阅读全文

posted @ 2019-03-12 10:52 arrows 阅读(227) 评论(0) 推荐(0)

2019年3月11日

Spring的单例模式底层实现

摘要: 转载: https://blog.csdn.net/cs408/article/details/48982085 单例模式也属于创建型模式,所谓单例,顾名思义,所指的就是单个实例,也就是说要保证一个类仅有一个实例。单例模式有以下的特点:①单例类只能有一个实例②单例类必须自己创建自己的唯一实例③单例类 阅读全文

posted @ 2019-03-11 17:24 arrows 阅读(320) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页

导航