Top "Spring-restcontroller" questions

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

Spring 4 AOP @Aspect isn't triggering for @RestController

I have created an Aspect which performs a basic id comparison to ensure that a user belongs to a the …

spring-mvc spring-aop spring-4 spring-restcontroller
Spring Boot can't autowire @ConfigurationProperties

Here is my FileStorageProperties class: @Data @ConfigurationProperties(prefix = "file") public class FileStorageProperties { private String uploadDir; } This gives me saying : not …

java spring spring-boot bean-validation spring-restcontroller
Which layer should be used for conversion to DTO from Domain Object

We are creating rest api's with Spring Boot. We have three layers in our project(Repository, Service and Controller). Lets …

layer dto spring-restcontroller
How to wrap JSON response from Spring REST repository?

I have a spring REST controller which returns the following JSON payload: [ { "id": 5920, "title": "a title" }, { "id": 5926, "title": "another title", } ] …

java json spring rest spring-restcontroller
Rest Custom HTTP Message Converter Spring Boot 1.2.3

I want to create a custom of HttpMessageConverter using Rest, Json, Spring Boot 1.2.3 and Spring 4, However my custom HTTPMessageConverter its' …

spring spring-boot spring-4 spring-restcontroller spring-json
Resttemplate and patch, invalid

I use spring 1.4.3 I try to call a web service @PatchMapping(value = "/members/{memberId}/card") public ResponseEntity updateMemberCardId(@PathVariable("memberId") …

spring-boot resttemplate spring-restcontroller
Correct way to handle exceptions in Spring Boot

I was reading the Spring docs and found that creating a subclass from ResponseEntityExceptionHandler was a good way on handling …

java spring spring-boot spring-restcontroller spring-rest