vendredi 13 avril 2018

Integrating Ember.js with Spring Framework

Integrating Ember.js with Spring Framework

I am trying to save firstname and lastname of customer but I am getting null values .I am using ember on Client side and server side Java aplication with spring framework

Web console :- WARNING: The server returned an empty string for POST, which cannot be parsed into a valid JSON. Return either null or {}.

Server code (Java Application):- @PostMapping(path="/createCustomer") public void createCustomer(@RequestBody EmberCustom createCustomer) { System.out.println("Firstname:"+ createCustomer.getFirstname() + ", Lastname: " + createCustomer.getLastname()); }

Output :- Tomcat started on port(s): 8080 (http) Firstname:null, Lastname: null




Aucun commentaire:

Enregistrer un commentaire