目录

postman-作为前端参数传递给后端

目录

postman 作为前端参数传递给后端

注意是查询要用get请求

控制层写得方法

https://i-blog.csdnimg.cn/blog_migrate/39a25c4111508de7ab8a5c7ed80edb75.png

对应写查询语句 写查询语句的时候可以把传入的参数类型写上

https://i-blog.csdnimg.cn/blog_migrate/45938c52110d12987a32b9645914d5a7.png

打断点开始测试

https://i-blog.csdnimg.cn/blog_migrate/326363c6c77bbde5f374d66af998e960.png

点击小虫子

https://i-blog.csdnimg.cn/blog_migrate/325b725e207c5135e81faace6ea7f042.png

去postman发送    postman里面传  1 就是我的参数    根据自己的端口号和控制类名字 写路径

https://i-blog.csdnimg.cn/blog_migrate/f40c29fb8451d9606e6157d6df8321da.png

回idea  传入成功 和查询成功

https://i-blog.csdnimg.cn/blog_migrate/b64c086a2e2c5522170077ab4a3fce14.png