P E N C I L
Login
Rest
  1. @RestController
    @RequestMapping(path="/api/account")
    public class AccountResource {
        @Autowired
        private AccountService accountService;
    
        @PostMapping("/create")
        public String createAccount(){
            return "OK";
        }
    }
  2. @RestController = @Controller + @ResponseBody
    @ResponseBody: convert returned object to json