import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
@RequestMapping("/parameter")
public class ControllerDemo{
@Autowired
private GroupService groupService;
@RequestMapping(value = "/commongenerator",method = RequestMethod.POST,produces = {"application/json;charset=UTF-8"})
@ResponseBody
public ResultMessage commoninterface(@RequestParam("env") String env,@RequestParam("uk_method_name") String uk_method_name,@RequestParam("datainfo") String datainfo){
xxx
}
//jsersy不支持不同的变量 import javax.ws.rs.FormParam; @FormParam
}
Controller的写法
最新推荐文章于 2024-07-24 07:49:37 发布