报错之前:
@RequestMapping(value = "hi", method = RequestMethod.GET)String hiService(@RequestParam String name);修改之后:
@RequestMapping(value = "hi", method = RequestMethod.GET)String hiService(@RequestParam(name = "name") String name);问题解决