Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @RestController
- public class RESTCustCtrl {
- @Autowired
- private CustomerRepo customerRepo;
- @RequestMapping(value = "sendStmt", method = RequestMethod.POST)
- public CustomerStatement custStmt(@RequestBody CustomerStatement customerStatement){
- customerRepo.save(customerStatement);
- return customerStatement;
- }
- }
- public @ResponceBody CustomerStatement custStmt(CustomerStatement customerStatement)
Add Comment
Please, Sign In to add comment