![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springmvc
文章平均质量分 57
一只酸奶牛^_^
这个人太懒了,什么都没留下~~
展开
-
springmvc使用@RequestBody和@RequestParam注解
RequestBody的Post请求 @RequestMapping(value="findByUsername",method = RequestMethod.POST) @ResponseBody public void findByUsername(@RequestBody String username) { System.out.println(username); } 1 2 3 RequestBody的get请求 效果跟Post一模一样 RequestParam的Po原创 2021-03-07 15:45:07 · 110 阅读 · 0 评论 -
使用maven搭建springmvc环境
1、导包 pom.xml <?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-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven原创 2021-03-01 17:58:06 · 262 阅读 · 0 评论