上一页 1 ··· 60 61 62 63 64 65 66 67 68 ··· 70 下一页
摘要: Get方式请求解决方式: 1 username = new String(username.getBytes(StandardCharsets.ISO_8859_1),StandardCharsets.UTF_8); 这是编码问题,而此方式是由于所有,Get和Post都可以用这个解决乱码 阅读全文
posted @ 2023-01-10 11:26 阿飞藏泪 阅读(52) 评论(0) 推荐(0) 编辑
摘要: Post请求方式可以用设置输入流的编码来解决 写入如下代码; 1 //设置字符输入流的编码,设置的字符集要和页面保持一致 2 request.setCharacterEncoding("UTF-8"); 但是Get方式请求方式不可以用此方法来解决。 阅读全文
posted @ 2023-01-10 11:12 阿飞藏泪 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 1.获取所有参数map集合 1 map<String,String [] >getParameterMap() 2.根据名称获取参数值(数组) 1 String[] fetParameterValues(String name) 3.根据名称获取参数值(单个值) 1 String getParame 阅读全文
posted @ 2023-01-10 11:10 阿飞藏泪 阅读(89) 评论(0) 推荐(0) 编辑
摘要: tomcat7插件 1 <plugin> 2 <groupId>org.apache.tomcat.maven</groupId> 3 <artifactId>tomcat7-maven-plugin</artifactId> 4 </plugin> jdk17坐标,因为不适配原因,我要去自己去写个 阅读全文
posted @ 2023-01-09 09:52 阿飞藏泪 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 使用注解开发会比配置文件开发更加方便。如下就是使用注解进行开发 @Select(value = "select * from tb_user where id = #{id}") public User select(int id); ==注意:== 注解是用来替换映射配置文件方式配置的,所以使用了 阅读全文
posted @ 2023-01-08 18:00 阿飞藏泪 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 在修改时候,当只修改一个变量时,会出问题,这是就要哟用动态sql语句,主要用<set>和<if>标签来使用。 阅读全文
posted @ 2023-01-08 17:13 阿飞藏泪 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 在进行学习黑马web,知道了动态sql语句,知道了if标签和where标签。这两个标签经常一起用。还学到了choose标签相当于Java中的switch。 阅读全文
posted @ 2023-01-07 18:11 阿飞藏泪 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 1.sort(arry,arry+5),从小到大,排序这五个元素 2.sort(arry,arry+5,greater<>())从大到小 阅读全文
posted @ 2023-01-06 21:31 阿飞藏泪 阅读(65) 评论(0) 推荐(0) 编辑
摘要: string字符串拼接 1 函数原型: 2 string& operator +=(const chat * str); //重载+=操作符号 3 string& operator +=(const char c)//重载+=操作符 4 string& operator +=(const strin 阅读全文
posted @ 2023-01-06 19:43 阿飞藏泪 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 更多的奇巧淫技可以看看这位大佬博客。 https://blog.csdn.net/weixin_44034328/article/details/104065337 阅读全文
posted @ 2023-01-06 16:02 阿飞藏泪 阅读(19) 评论(0) 推荐(0) 编辑
上一页 1 ··· 60 61 62 63 64 65 66 67 68 ··· 70 下一页
1 2 3
4