Top "Spring-rest" questions

Use this tag for question about the REST architectural style used in Spring framework

@RestController methods seem to be Transactional by default, Why?

Using Spring boot 1.3.1 I don't understand why @RestController are Transactionnal by default. I haven't found anything saying so in the …

spring-boot spring-rest
Spring Boot REST Design for Search API

I am designing a SpringBoot RESTful API for a Product searching with various attributes (search can be one or more). …

spring-boot api-design spring-rest
Spring Data Rest Validation Confusion

Looking for some help with Spring data rest validation regarding proper handling of validation errors: I'm so confused with the …

spring-boot spring-data-rest spring-rest
What is the equivalent of @Context UriInfo in Spring Rest

I have worked in Jersey and RESTEasy framework earlier and now we will be using Spring Rest for a new …

spring-mvc jersey jax-rs resteasy spring-rest
Spring-Boot disable transfer-coding from response header

Problem statement - a simple RESTful service in Spring-Boot (2.0.1.RELEASE, and embedded Tomcat Server) returns response like, HTTP/1.1 200 Content-Type: application/…

tomcat spring-boot http-headers spring-rest
Spring boot security REST basic authentication from database

I have a problem where when I use basic authentication with inMemoryAuthentication as in the following snippet, it works perfectly. @…

java spring spring-boot spring-security spring-rest
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
How to force `.andExpect(jsonPath()` to return Long/long instead int for int number for jackson parser

I have a simple test to my RestController. I expect that $[1].parent_idreturns Long as an object and not integer …

json jackson spring-test spring-rest