Top "Spring-restcontroller" questions

@RestController is Spring MVC's shortcut annotation for creating Rest Controllers.

Spring throwing HttpMediaTypeNotAcceptableException: Could not find acceptable representation due to dot in url path

Final Edit So after researching this because the answer's didn't quite make since with what I was seeing, I found …

java spring spring-restcontroller
lost one day for a date

On client side, i use dd/MM/yyyy date format. The field use a twitter bootstrap 3 datetime picker (https://eonasdan.…

java json jackson orika spring-restcontroller
Difference between path and value attributes in @RequestMapping annotation

What is the difference between below two attributes and which one to use when? @GetMapping(path = "/usr/{userId}") public String …

java spring rest spring-boot spring-restcontroller
Spring upload file size limit error

I am using Spring Boot and I can send images that are smaller than 1MB, but when I make a …

java spring spring-boot tomcat spring-restcontroller
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 …

java spring rest spring-mvc spring-restcontroller
Spring @GetMapping with @RequestParam and @RequestBody fails with HttpMessageNotReadableException

Request to the endpoint fails with the following error: 400 Bad request org.springframework.http.converter.HttpMessageNotReadableException: Required request body is …

spring http swagger spring-restcontroller
Angular 8 NgFor only supports binding to Iterables such as Arrays error and Acces Control Allow origin

I have a model: export class Employe { constructor(public id?: any, public nom?: String, public prenom?: String, public cin?: String){} } …

angular spring-restcontroller cross-origin-read-blocking
Avoiding default basic-error-controller from swagger api

I'm using swagger2 in my spring boot project. It's working well, but I need to exclude the basic-error-controller from the …

java spring spring-boot swagger-2.0 spring-restcontroller
Using a map to set parameters for a rest call using RestTemplate

I am currently using a piece of code to set parameters and I do a REST call to a URL …

java spring spring-mvc spring-restcontroller
Infinite loop with spring-boot in a one to many relation

In a rest application, I use spring boot with jpa. I have a class Lodger who have @OneToMany(cascade = CascadeType.…

spring spring-boot spring-restcontroller