1、启动失败web
加spring
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>
2、访问不了接口:若是加了ComponentScan注解,则必须包含controller所在的路径 json
3、接口调用api
一、查询app
二、新增spring-boot
(1)报错,纠结于参数传递方式 post
(2)ApiPost支持多种请求参数类型 https://doc.apipost.cn/15d046a66883807durl
(3)@RequestBody注解的参数,能接收Content-Type为application/json的请求的参数值,要接收application/x-www-form-urlencoded的参数还需作点工做 https://blog.csdn.net/justry_deng/article/details/998755.net
(4)被@RequestBody注解的参数,既能接收Content-Type为application/json的请求的参数值,又能接收Content-Type为application/x-www-form-urlencoded的请求的参数值 code
(5)上面那么麻烦,其实把RequestBody去了就行了,就没那么多事了。
三、删除
四、更新