会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
牛牛的自留地
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
6
7
8
9
10
11
12
下一页
2020年2月27日
常用注解
摘要: 1、@RequestParam 1.1、请求 <a href="test?userName=刘阳">测试</a> 1.2、处理方法 //当请求参数名和处理方法的参数名不一致时可使用@RequestParam注解解决 @RequestMapping("/test") public String tes
阅读全文
posted @ 2020-02-27 11:42 牛牛的自留地
阅读(137)
评论(0)
推荐(0)
2020年2月26日
获取Servlet原生API
摘要: 1、请求 <a href="param/test1">Servlet原生API</a> 2、处理方法 @RequestMapping("/param/test1") public String testParam6(HttpServletRequest request, HttpServletRes
阅读全文
posted @ 2020-02-26 21:08 牛牛的自留地
阅读(222)
评论(0)
推荐(0)
自定义类型转换器
摘要: 1、创建自定义类型转换器类 package com.ly.springmvc.converter; import org.springframework.core.convert.converter.Converter; import java.text.ParseException; import
阅读全文
posted @ 2020-02-26 20:52 牛牛的自留地
阅读(220)
评论(0)
推荐(0)
解决post请求乱码问题
摘要: 1、请求: <form action="param/test1" method="post"> userId:<input type="text" name="userId"><br> userName:<input type="text" name="userName"><br> <input t
阅读全文
posted @ 2020-02-26 14:22 牛牛的自留地
阅读(1310)
评论(0)
推荐(0)
请求参数绑定
摘要: 1、案例01 1.1、请求: <a href="param/test1?username=刘阳&age=18">测试</a> 1.2、处理方法: @RequestMapping("/param/test1") public String testParam1(String username,int
阅读全文
posted @ 2020-02-26 11:38 牛牛的自留地
阅读(221)
评论(0)
推荐(0)
2020年2月24日
springmvc入门
摘要: 1、代码结构 2、具体内容 2.1、maven依赖 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/
阅读全文
posted @ 2020-02-24 16:00 牛牛的自留地
阅读(156)
评论(0)
推荐(0)
2020年2月23日
基于纯注解的声明式事务控制
摘要: 1、maven依赖 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan
阅读全文
posted @ 2020-02-23 16:19 牛牛的自留地
阅读(240)
评论(0)
推荐(0)
基于注解的声明式事务控制
摘要: 1、maven依赖 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan
阅读全文
posted @ 2020-02-23 15:25 牛牛的自留地
阅读(192)
评论(0)
推荐(0)
基于XML的声明式事务控制
摘要: 1、maven依赖 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan
阅读全文
posted @ 2020-02-23 14:05 牛牛的自留地
阅读(260)
评论(0)
推荐(0)
2020年2月22日
spring中JdbcTemplate使用
摘要: 1、maven依赖 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan
阅读全文
posted @ 2020-02-22 20:34 牛牛的自留地
阅读(824)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
12
下一页
公告