摘要: 阿里巴巴开发的JSON <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.60</version> </dependency> @RequestMapping( "/j 阅读全文
posted @ 2023-03-24 21:13 Rui2022 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 公共类 package com.feijian.utils; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import c 阅读全文
posted @ 2023-03-24 20:59 Rui2022 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 1\JSON复习 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <script type="text/javascript"> var user ={ name:"飞剑", ag 阅读全文
posted @ 2023-03-24 20:04 Rui2022 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 一、TOMCAT CONFIG文件配置: <Connector port="8080" protocol="HTTP/1.1"connectionTimeout="20000"redirectPort="8443" URIEncoding="UTF-8"/> 二、springmvc自带过滤配置 <! 阅读全文
posted @ 2023-03-24 15:48 Rui2022 阅读(11) 评论(0) 推荐(0) 编辑
摘要: @Controller @RequestMapping("/user") public class UserController { @GetMapping("/t1") //一般都加上@ReuestParam,避免前端传递的参数名字和后端不一致 public String test1(@Reque 阅读全文
posted @ 2023-03-24 14:57 Rui2022 阅读(12) 评论(0) 推荐(0) 编辑