【发布时间】:2019-06-22 07:57:43
【问题描述】:
我有一个rest api方法如下:-
@RequestMapping(value = "/something", method = RequestMethod.POST)
public Object getSomething( @RequestParam String userEmail,Date valid_from, Date valid_till, HttpServletResponse initResponse) {
//Some functionality inside
}
我想通过邮递员测试 API。 我试过了:-
http://localhost:8080/something?userEmail="xyz@xyz.com"
但这只会在 userEmail 字段中设置数据。 如何设置valid_from、valid_till和initResponse的值?
【问题讨论】:
标签: spring rest spring-boot spring-mvc