@@ -0,0 +1,1798 @@
+package com.absentm.spbt.controllers;%0A%0Aimport com.absentm.spbt.entity.User;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0Aimport org.springframework.web.bind.annotation.*;%0A%0A@RestController%0A@RequestMapping(value = %22/param%22, method = RequestMethod.GET, produces = %22application/json; charset=UTF-8%22)%0Apublic class ParamController %7B%0A    private static final Logger logger = LoggerFactory.getLogger(ParamController.class);%0A%0A    @GetMapping(%22/test/%7Bname%7D%22)%0A    public String testPathVariable1(@PathVariable String name) %7B%0A//        http://localhost:8081/config/test/ddmmm%0A        logger.debug(%22test path variable is: %7B%7D%22, name);%0A        return %22Success!%22;%0A    %7D%0A%0A    @GetMapping(%22/test/%7Bid%7D/%7Busername%7D%22)%0A    public String testPathVariable2(@PathVariable Long id, @PathVariable(value = %22username%22) String name) %7B%0A//      http://localhost:8081/config/test/122/ddmmm%0A        logger.debug(%22test path variable is: id = %7B%7D, name = %7B%7D%22, id, name);%0A        return %22Success!%22;%0A    %7D%0A%0A    @GetMapping(%22/test1%22)%0A    public String testRequestParam(@RequestParam String user) %7B%0A//       http://localhost:8081/config/test1?user=ddmm%0A        logger.debug(%22test request variable is: name = %7B%7D%22, user);%0A        return %22Success!%22;%0A    %7D%0A%0A    @GetMapping(%22/test2%22)%0A    public String testRequestParam2(@RequestParam(value = %22user%22, required = false) String username) %7B%0A//       http://localhost:8081/config/test1?user=ddmm%0A        logger.debug(%22test request variable is: name = %7B%7D%22, username);%0A        return %22Success!%22;%0A    %7D%0A%0A    @PostMapping(%22/user%22)%0A    public String testRequestBody(@RequestBody User user) %7B%0A        logger.debug(%22test request variable is: name = %7B%7D%22, user.getUserName());%0A        logger.debug(%22test request variable is: passwd = %7B%7D%22, user.getUserPasswd());%0A        return %22success%22;%0A    %7D%0A%7D%0A

Add SpringMVC support