![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
文章平均质量分 59
虎爪吃奶酪
这个作者很懒,什么都没留下…
展开
-
Spring-test @Transactional默认进行回滚
在写测试时发现标柱了@Transactional的方法最后会默认进行回滚,如果想要测试数据不回滚,加上注解@Rollback(value = false) 。原创 2021-07-04 16:19:10 · 584 阅读 · 0 评论 -
使用注解@RequestParam@RequestBody获得表单数据
使用@RequestParamUse the @RequestParam annotation to bind request parameters to a method parameter in your controller.在前端通过表单提交数据,如果http请求是GET,则表单参数会以放入URL的查询参数中,例如:http://localhost:port/...?key1=value1&key2=value2那么 ,在后端Controller中,可以通过Request.g转载 2021-07-03 23:48:16 · 4468 阅读 · 0 评论