服务提供者:
服务名:userService
暴露的controller方法:
@RestController public class UserController { @Autowired UserService userService; @RequestMapping("/getUser/{id}") public Map<String, Object> getUser(@PathVariable(value = "id") Integer id){ return userService.getUser(id); } }