当前位置: 代码迷 >> 综合 >> controller参数绑定
  详细解决方案

controller参数绑定

热度:23   发布时间:2024-01-24 06:35:28.0

1、如果默认不加注解,默认是@RequestParam

public GeneralResult investmentAnalysis(@RequestParam(value = "queryType") String queryType, @RequestParam(value = "token") String token, InvestmentAnalysisDto dto)

2、提交json格式的数据,用@RequestBody绑定参数

 json.stringify()

 

  相关解决方案