So I have a @RestController and I want to return and validate XML based on a schema for a front-end application in order to display them in an editor. I want the errors to be in json format in order to handle and display them with js. The ServerError I want to return in JSON format : So the <xml>hello</xml>
Tag: spring-restcontroller
Rest Controller not recognizing GET request in Spring Boot App
I am trying to implement simple demo MVC app with Spring Boot but I get 404 error while executing the application. The uri is `http://localhost:8080/’ which is to display all the rows in a table called circle. Spring Boot : 1.3.3.RELEASE Java Version : 1.8.0_65 Database : Apache Derby 10.12.1.1 Maven Java Project: Application.java CircleController.java CircleRepository.java CircleService.java Circle.java application.properties pom.xml
Spring Rest Controller Return Specific Fields
I’ve been going through my head the best way to design a JSON API using Spring MVC. As we all know IO is expensive, and thus I don’t want to make the client make several API calls to get what they need. However at the same time I don’t necessarily want to return the kitchen sink. As an example I