Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

It works fine but what if multiple json array is there (array inside array and again inside array)?? how can i create this type of web services with Spring RestTemplate??
- divyesh shani
while passing json code through restfull service by using soap ui tool.getting 415 error 1)json: [{ “AuthToken” : “token”, “empName”: “Name”, “empNo”: 111, “locName”: “kolkata”, “locNumber”: 713156 }] 2)bean class: private String AuthToken ; private String empName; private String name; private String empNo; private String locName ; private String locNumber; public void setAuthToken(String AuthToken) { this.AuthToken = AuthToken; } public String getAuthToken() { return AuthToken; } public void setEmpName(String empName) { this.empName = empName; } public String getEmpName() { return empName; } public void setName(String name) { this.name = name; } public String getName() { return name; } public void setEmpNo(String empNo) { this.empNo = empNo; } public String getEmpNo() { return empNo; } public void setLocName(String locName) { this.locName = locName; } public String getLocName() { return locName; } public void setLocNumber(String locNumber) { this.locNumber = locNumber; } public String getLocNumber() { return locNumber; } } 3)controller: @RequestMapping(value=“/upload”, method={RequestMethod.POST},consumes={“application/json” },produces={“application/xml” }) @ResponseBody public NurseInfo uploadNote(@Validated @RequestBody NurseInfo nurseInfo) throws Exception { // TODO Auto-generated method stub System.out.println(nurseInfo); System.out.println(nurseInfo.getEmpNo()); String json=“”+nurseInfo.getEmpName()+“”; System.out.println(json); return nurseInfo; } 4)Error: Apache Tomcat/7.0.16 - Error report HTTP Status 415 - type Status report message description The server refused this request because the request entity is in a format not supported by the requested resource for the requested method (). Apache Tomcat/7.0.16 Thanks in advancs
- Rajesh
Hi, How to handle the multiple actions in single jsp using springMVC like … … … … … … … … Thanks, Madhu R.
- madhu
I have to use dynamic URI but it fails for me. Assume the method value in controller is given below, Controller: @RequestMapping(value=“/updateSpecifiCertificate/{id}”) @ResponseBody public String method7(@PathVariable(“id”) int id){ return “method7 with id=”+id; } jsp: /updateSpecifiCertificate/${conCertBean.certificateId} when i click the above link, it binds the dynamic id with the url and throws 404 as below, The requested resource (/updateSpecifiCertificate/CERT22) is not available. How to call my controller in this case, Please help me i have tried so many ways… Thank You So Much… Vijay
- Vijay G
in method level request mapping that method return some string like method1, method2, where we need to configure relevant jsp to forward? In my case I want to redirect to customers list and my method is like @RequestMapping(value = “customers”, method = RequestMethod.GET) public String getCustomers(Model model, HttpServletRequest request) { … … return “customers” } is it enough to have customers.jsp or need to configure this “/customers” to customers.jsp
- Shiva kumar
This is my fallback method, @RequestMapping(“*”) @ResponseBody public String fallBackMethod() { return “Error404”; } here, Error404 is my JSP page. if i gave any wrong URI it displays Error404 msg only, but it did’t display my Error404 JSP page, Now i want to display my Error404 JSP page if i gave any wrong URI
- Rasu