Top "Spring-web" questions

A framework for building Java web applications based on the Model-View-Controller (MVC) pattern.

Spring's @RequestParam with Enum

I have this enum : public enum SortEnum { asc, desc; } That I want to use as a parameter of a rest …

java spring spring-boot spring-web
Overriding beans in Integration tests

For my Spring-Boot app I provide a RestTemplate though a @Configuration file so I can add sensible defaults(ex Timeouts). …

java spring spring-boot spring-test spring-web
Spring RestTemplate and generic types ParameterizedTypeReference collections like List<T>

An Abstract controller class requires List of objects from REST. While using Spring RestTemplate its not mapping it to required …

java resttemplate spring-rest spring-web
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
Proper way of streaming using ResponseEntity and making sure the InputStream gets closed

One of our application leaks file handles and we have not yet found the cause for this. In the code …

spring spring-boot spring-web request-mapping
Difference between spring-boot-starter-web and spring-boot-starter-web-services and spring-boot-starter-jersey

Could you someone please assist me knowing the Difference between spring-boot-starter-web VS spring-boot-starter-web-services VS spring-boot-starter-jersey The documentation says Starter for …

java spring spring-boot spring-ws spring-web
How to validate the size of @RequestParam of type List

I'm creating a Spring-Boot microservice REST API that expects @RequestParam of type List<String>. How can I validate …

java spring-boot spring-web spring-validator