Top "Spring-restcontroller" questions

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

Spring File Upload - 'Required request part is not present'

I am trying to send POST request to my controller but cannot pass any parameter in any type unless I …

java spring rest postman spring-restcontroller
Can spring map POST parameters by a way other than @RequestBody

I am using @RestControllers with an application where all requests are POST requests ... As I learned from this post , you …

spring spring-mvc 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. …

java maven spring-mvc spring-boot spring-restcontroller
org.apache.catalina.connector.ClientAbortException: java.io.IOException: APR error: -32

At my Spring Boot + Tomcat 8 project I have configured @ControllerAdvice which looks like: @ControllerAdvice public class GlobalControllerExceptionHandler { final static Logger …

tomcat spring-boot jackson tomcat8 spring-restcontroller
@RestController in other package doesn't work

I start with learning Spring and I create basic project which creates database, insert values and next print it in …

java spring maven package spring-restcontroller
nested exception is java.lang.IllegalArgumentException: Not a managed type: class

I am trying to deploy a Spring-Boot application with Service accessing a JpaRepository which is connecting to PostgreSQL DB at …

spring spring-boot spring-data spring-data-jpa spring-restcontroller
How to get List from Page in Spring Data REST

I am using JPARespository for all my CRUD operation. Recently I wanted to implement sorting, so I went ahead with …

java spring pagination spring-data spring-restcontroller
Content type 'text/plain;charset=UTF-8' not supported error in spring boot inside RestController class

I got the following @RestController inside a spring boot application : @Data @RestController public class Hello { @Autowired private ResturantExpensesRepo repo; @RequestMapping(…

spring spring-boot utf-8 spring-restcontroller spring-web
How to Use Spring Boot's 'spring.jackson.date-format' Property?

According to the Current SpringBoot Reference Guide if I set the spring.jackson.date-format property, it will: Date format string …

spring spring-boot jackson spring-restcontroller spring-rest
What type of exception to throw in Spring RestController when validation fails?

In a Spring RestController I have an input validation of the RequestBody simply by annotating the corresponding method parameter as @…

java spring validation exception spring-restcontroller