repo
stringclasses
1k values
file_url
stringlengths
96
373
file_path
stringlengths
11
294
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
6 values
commit_sha
stringclasses
1k values
retrieved_at
stringdate
2026-01-04 14:45:56
2026-01-04 18:30:23
truncated
bool
2 classes
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-resttemplate/src/main/java/com/baeldung/sampleapp/web/dto/HeavyResourceAddressPartialUpdate.java
spring-web-modules/spring-resttemplate/src/main/java/com/baeldung/sampleapp/web/dto/HeavyResourceAddressPartialUpdate.java
package com.baeldung.sampleapp.web.dto; public class HeavyResourceAddressPartialUpdate { private Integer id; private String address; public HeavyResourceAddressPartialUpdate() { } public HeavyResourceAddressPartialUpdate(Integer id, String address) { this.id = id; this.address = ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-resttemplate/src/main/java/com/baeldung/sampleapp/web/dto/Item.java
spring-web-modules/spring-resttemplate/src/main/java/com/baeldung/sampleapp/web/dto/Item.java
package com.baeldung.sampleapp.web.dto; import com.fasterxml.jackson.annotation.JsonView; public class Item { @JsonView(Views.Public.class) public int id; @JsonView(Views.Public.class) public String itemName; @JsonView(Views.Internal.class) public String ownerName; public Item() { ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-resttemplate/src/main/java/com/baeldung/sampleapp/web/dto/HeavyResourceAddressOnly.java
spring-web-modules/spring-resttemplate/src/main/java/com/baeldung/sampleapp/web/dto/HeavyResourceAddressOnly.java
package com.baeldung.sampleapp.web.dto; public class HeavyResourceAddressOnly { private Integer id; private String address; public HeavyResourceAddressOnly() { } public HeavyResourceAddressOnly(Integer id, String address) { this.id = id; this.address = address; } public ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-resttemplate/src/main/java/com/baeldung/sampleapp/web/dto/Company.java
spring-web-modules/spring-resttemplate/src/main/java/com/baeldung/sampleapp/web/dto/Company.java
package com.baeldung.sampleapp.web.dto; public class Company { private long id; private String name; public Company() { super(); } public Company(final long id, final String name) { this.id = id; this.name = name; } public String getName() { return name; ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-resttemplate/src/main/java/com/baeldung/sampleapp/web/dto/Views.java
spring-web-modules/spring-resttemplate/src/main/java/com/baeldung/sampleapp/web/dto/Views.java
package com.baeldung.sampleapp.web.dto; public class Views { public static class Public { } public static class Internal extends Public { } }
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-resttemplate/src/main/java/com/baeldung/sampleapp/web/dto/ItemManager.java
spring-web-modules/spring-resttemplate/src/main/java/com/baeldung/sampleapp/web/dto/ItemManager.java
package com.baeldung.sampleapp.web.dto; public class ItemManager { public static Item getById(final int id) { final Item item = new Item(2, "book", "John"); return item; } }
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-resttemplate/src/main/java/com/baeldung/sampleapp/web/dto/HeavyResource.java
spring-web-modules/spring-resttemplate/src/main/java/com/baeldung/sampleapp/web/dto/HeavyResource.java
package com.baeldung.sampleapp.web.dto; public class HeavyResource { private Integer id; private String name; private String surname; private Integer age; private String address; public HeavyResource() { } public HeavyResource(Integer id, String name, String surname, Integer age, St...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-resttemplate/src/main/java/com/baeldung/sampleapp/web/exception/ResourceNotFoundException.java
spring-web-modules/spring-resttemplate/src/main/java/com/baeldung/sampleapp/web/exception/ResourceNotFoundException.java
package com.baeldung.sampleapp.web.exception; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; @ResponseStatus(value = HttpStatus.NOT_FOUND) public class ResourceNotFoundException extends RuntimeException { }
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-2/src/test/java/com/baeldung/unsupportedmediatype/ApplicationUnitTest.java
spring-web-modules/spring-rest-http-2/src/test/java/com/baeldung/unsupportedmediatype/ApplicationUnitTest.java
package com.baeldung.unsupportedmediatype; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; import org.springframework.http.MediaType; import org.springframework.test.context...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-2/src/test/java/com/baeldung/longpolling/BakeryControllerIntegrationTest.java
spring-web-modules/spring-rest-http-2/src/test/java/com/baeldung/longpolling/BakeryControllerIntegrationTest.java
package com.baeldung.longpolling; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.context.SpringBootTest; import org.springfra...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-2/src/test/java/com/baeldung/status/ExampleControllerIntegrationTest.java
spring-web-modules/spring-rest-http-2/src/test/java/com/baeldung/status/ExampleControllerIntegrationTest.java
package com.baeldung.status; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans....
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/SpringBootRest2Application.java
spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/SpringBootRest2Application.java
package com.baeldung; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class SpringBootRest2Application { public static void main(String[] args) { SpringApplication.run(SpringBootRest2Application.class, a...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/unsupportedmediatype/User.java
spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/unsupportedmediatype/User.java
package com.baeldung.unsupportedmediatype; import jakarta.xml.bind.annotation.XmlRootElement; import java.io.Serializable; @XmlRootElement public class User implements Serializable { private Integer id; private String name; private Integer age; private String address; public User(){ } pu...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/unsupportedmediatype/UnsupportedMediaTypeApplication.java
spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/unsupportedmediatype/UnsupportedMediaTypeApplication.java
package com.baeldung.unsupportedmediatype; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class UnsupportedMediaTypeApplication { public static void main(String[] args) { SpringApplication.run(Unsupport...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/unsupportedmediatype/UserController.java
spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/unsupportedmediatype/UserController.java
package com.baeldung.unsupportedmediatype; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.*; import java.util.Collections; import java.util.List; @RestController @RequestMapping("/user") public class UserController { @GetMapping(value = "/") List<User> getAllUsers(...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/swaggerui/disable/SwaggerUIDisableApplication.java
spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/swaggerui/disable/SwaggerUIDisableApplication.java
package com.baeldung.swaggerui.disable; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class SwaggerUIDisableApplication { public static void main(String[] args) { SpringApplication.run(SwaggerUIDisable...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/swaggerui/disable/controllers/VersionController.java
spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/swaggerui/disable/controllers/VersionController.java
package com.baeldung.swaggerui.disable.controllers; import io.swagger.v3.oas.annotations.Operation; import org.springframework.core.env.Environment; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class VersionController ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/swaggerui/disable/config/SwaggerConfig.java
spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/swaggerui/disable/config/SwaggerConfig.java
package com.baeldung.swaggerui.disable.config; import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Profile; import org.springframew...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/longpolling/controller/BakeryController.java
spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/longpolling/controller/BakeryController.java
package com.baeldung.longpolling.controller; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bin...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/longpolling/client/LongPollingBakeryClient.java
spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/longpolling/client/LongPollingBakeryClient.java
package com.baeldung.longpolling.client; import io.netty.handler.timeout.ReadTimeoutException; import org.springframework.boot.web.client.RestTemplateBuilder; import org.springframework.stereotype.Component; import org.springframework.web.client.ResourceAccessException; import org.springframework.web.client.RestTempla...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/deffered/controllers/DeferredResultController.java
spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/deffered/controllers/DeferredResultController.java
package com.baeldung.deffered.controllers; import java.util.concurrent.ForkJoinPool; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.ui.Model; import org.springframework.web.bind.annotation....
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/status/ExampleController.java
spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/status/ExampleController.java
package com.baeldung.status; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframew...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/status/MvcConfig.java
spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/status/MvcConfig.java
package com.baeldung.status; import java.text.SimpleDateFormat; import java.util.List; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.http.MediaType; import org.springframework.http.converter.HttpMessageConverter; im...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/status/ForbiddenException.java
spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/status/ForbiddenException.java
package com.baeldung.status; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; @ResponseStatus(value = HttpStatus.FORBIDDEN, reason = "To show an example of a custom message") public class ForbiddenException extends RuntimeException { private static final l...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/putvspost/AddressRepository.java
spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/putvspost/AddressRepository.java
package com.baeldung.putvspost; import org.springframework.data.jpa.repository.JpaRepository; public interface AddressRepository extends JpaRepository<Address, Long> { }
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/putvspost/AddressController.java
spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/putvspost/AddressController.java
package com.baeldung.putvspost; import java.util.List; import java.util.Optional; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMap...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/putvspost/Address.java
spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/putvspost/Address.java
package com.baeldung.putvspost; import jakarta.persistence.Entity; import jakarta.persistence.GeneratedValue; import jakarta.persistence.Id; @Entity public class Address { private @Id @GeneratedValue Long id; private String name; private String city; private String postalCode; Address() { } ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/putvspost/PutVsPostApplication.java
spring-web-modules/spring-rest-http-2/src/main/java/com/baeldung/putvspost/PutVsPostApplication.java
package com.baeldung.putvspost; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class PutVsPostApplication { public static void main(String[] args) { SpringApplication.run(PutVsPostApplication.class, arg...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/test/java/com/baeldung/service/impl/CustomerServiceImplUnitTest.java
spring-web-modules/spring-rest-http/src/test/java/com/baeldung/service/impl/CustomerServiceImplUnitTest.java
package com.baeldung.service.impl; import com.baeldung.model.Customer; import com.baeldung.service.CustomerIdGenerator; import com.baeldung.service.CustomerService; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.junit.MockitoJUnitRunner; ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/test/java/com/baeldung/service/impl/CustomerIdGeneratorImplUnitTest.java
spring-web-modules/spring-rest-http/src/test/java/com/baeldung/service/impl/CustomerIdGeneratorImplUnitTest.java
package com.baeldung.service.impl; import com.baeldung.service.CustomerIdGenerator; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; public class CustomerIdGeneratorImplUnitTest { @Test public void givenIdGeneratedPreviously_whenGenerated_thenIdIsIncremented(){ Custo...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/test/java/com/baeldung/requesttimeout/RequestTimeoutIntegrationTest.java
spring-web-modules/spring-rest-http/src/test/java/com/baeldung/requesttimeout/RequestTimeoutIntegrationTest.java
package com.baeldung.requesttimeout; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest.WebEnvironment; import org.springframework.test.context.junit4.SpringRunner; imp...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/test/java/com/baeldung/uribuilder/SpringUriBuilderUnitTest.java
spring-web-modules/spring-rest-http/src/test/java/com/baeldung/uribuilder/SpringUriBuilderUnitTest.java
package com.baeldung.uribuilder; import static org.junit.Assert.assertEquals; import java.util.Collections; import org.junit.Test; import org.springframework.web.util.UriComponents; import org.springframework.web.util.UriComponentsBuilder; public class SpringUriBuilderUnitTest { @Test public void construct...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/test/java/com/baeldung/responseheaders/ResponseHeaderLiveTest.java
spring-web-modules/spring-rest-http/src/test/java/com/baeldung/responseheaders/ResponseHeaderLiveTest.java
package com.baeldung.responseheaders; import static org.assertj.core.api.Assertions.assertThat; import java.util.Arrays; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.sprin...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/test/java/com/baeldung/web/controller/customer/CustomerRestControllerUnitTest.java
spring-web-modules/spring-rest-http/src/test/java/com/baeldung/web/controller/customer/CustomerRestControllerUnitTest.java
package com.baeldung.web.controller.customer; import com.baeldung.model.Customer; import com.baeldung.service.CustomerService; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfi...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/test/java/com/baeldung/web/controller/customer/CustomerRestControllerIntegrationTest.java
spring-web-modules/spring-rest-http/src/test/java/com/baeldung/web/controller/customer/CustomerRestControllerIntegrationTest.java
package com.baeldung.web.controller.customer; import com.baeldung.model.Customer; import com.baeldung.service.CustomerService; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.Sp...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/test/java/com/baeldung/requestmapping/FooMappingExamplesControllerUnitTest.java
spring-web-modules/spring-rest-http/src/test/java/com/baeldung/requestmapping/FooMappingExamplesControllerUnitTest.java
package com.baeldung.requestmapping; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; import org.springframework.http.MediaType; import org.springframework.test.context.junit...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/test/java/com/baeldung/requestmapping/BazzNewMappingsExampleIntegrationTest.java
spring-web-modules/spring-rest-http/src/test/java/com/baeldung/requestmapping/BazzNewMappingsExampleIntegrationTest.java
package com.baeldung.requestmapping; import static org.hamcrest.Matchers.hasSize; import static org.hamcrest.Matchers.is; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.delete; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.s...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/CustomerSpringBootRestApplication.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/CustomerSpringBootRestApplication.java
package com.baeldung; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class CustomerSpringBootRestApplication { public static void main(String[] args) { SpringApplication.run(CustomerSpringBootRestApplic...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/service/CustomerIdGenerator.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/service/CustomerIdGenerator.java
package com.baeldung.service; public interface CustomerIdGenerator { int generateNextId(); }
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/service/CustomerService.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/service/CustomerService.java
package com.baeldung.service; import com.baeldung.model.Customer; import java.util.Optional; public interface CustomerService { Customer createCustomer(Customer customer); Optional<Customer> findCustomer(String id); void updateCustomer(Customer customer); }
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/service/impl/CustomerServiceImpl.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/service/impl/CustomerServiceImpl.java
package com.baeldung.service.impl; import com.baeldung.model.Customer; import com.baeldung.service.CustomerIdGenerator; import com.baeldung.service.CustomerService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.ArrayList; import java.ut...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/service/impl/CustomerIdGeneratorImpl.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/service/impl/CustomerIdGeneratorImpl.java
package com.baeldung.service.impl; import com.baeldung.service.CustomerIdGenerator; import org.springframework.stereotype.Component; import java.util.concurrent.atomic.AtomicInteger; @Component public class CustomerIdGeneratorImpl implements CustomerIdGenerator { private static final AtomicInteger SEQUENCE = ne...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/model/Customer.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/model/Customer.java
package com.baeldung.model; import java.util.List; import java.util.Map; import java.util.Objects; public class Customer { private String id; private String telephone; private List<String> favorites; private Map<String, Boolean> communicationPreferences; public Customer() { } public Cust...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/requesttimeout/RequestTimeoutRestController.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/requesttimeout/RequestTimeoutRestController.java
package com.baeldung.requesttimeout; import java.time.Duration; import java.util.concurrent.Callable; import java.util.concurrent.CompletableFuture; import org.springframework.transaction.annotation.Transactional; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotatio...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/requesttimeout/configuration/WebClientConfiguration.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/requesttimeout/configuration/WebClientConfiguration.java
package com.baeldung.requesttimeout.configuration; import java.time.Duration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.client.reactive.ReactorClientHttpConnector; import org.springframework.web.reactive.function.cl...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/requesttimeout/configuration/RestClientConfiguration.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/requesttimeout/configuration/RestClientConfiguration.java
package com.baeldung.requesttimeout.configuration; import java.time.Duration; import org.springframework.boot.web.client.ClientHttpRequestFactories; import org.springframework.boot.web.client.ClientHttpRequestFactorySettings; import org.springframework.context.annotation.Bean; import org.springframework.context.annot...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/requesttimeout/domain/Book.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/requesttimeout/domain/Book.java
package com.baeldung.requesttimeout.domain; import jakarta.persistence.Entity; import jakarta.persistence.Id; @Entity public class Book { @Id private String title; private String author; public void setTitle(String title) { this.title = title; } public String getTitle() { re...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/requesttimeout/domain/BookRepository.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/requesttimeout/domain/BookRepository.java
package com.baeldung.requesttimeout.domain; import static java.util.concurrent.TimeUnit.SECONDS; import org.springframework.data.jpa.repository.JpaRepository; import com.google.common.base.Stopwatch; public interface BookRepository extends JpaRepository<Book, String> { default void wasteTime() { Stopwa...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/config/MvcConfig.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/config/MvcConfig.java
package com.baeldung.config; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.http.MediaType; import org.springframework.http.converter.HttpMessageConverter; import org.springframework.http.converter.json.Jackson2Objec...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/responseheaders/ResponseHeadersApplication.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/responseheaders/ResponseHeadersApplication.java
package com.baeldung.responseheaders; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.web.servlet.ServletComponentScan; @ServletComponentScan @SpringBootApplication public class ResponseHeadersApplication { pu...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/responseheaders/filter/AddResponseHeaderFilter.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/responseheaders/filter/AddResponseHeaderFilter.java
package com.baeldung.responseheaders.filter; import java.io.IOException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import jakarta.servlet.Filter; import jakarta.servlet.FilterChain; import jakarta.servlet.FilterConfig; import jakarta.servlet.ServletException; import jakarta.servlet.ServletRequest; imp...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/responseheaders/controllers/FilterResponseHeaderController.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/responseheaders/controllers/FilterResponseHeaderController.java
package com.baeldung.responseheaders.controllers; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import jakarta.servlet.http.HttpServletResponse; @RestController @RequestMapping("...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/responseheaders/controllers/ResponseHeaderController.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/responseheaders/controllers/ResponseHeaderController.java
package com.baeldung.responseheaders.controllers; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import jakarta.servlet.http.HttpServletResponse; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/endpoint/SpringBootRestApplication.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/endpoint/SpringBootRestApplication.java
package com.baeldung.endpoint; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class SpringBootRestApplication { public static void main(String[] args) { SpringApplication.run(SpringBootRestApplication.c...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/endpoint/controller/HelloController.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/endpoint/controller/HelloController.java
package com.baeldung.endpoint.controller; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class HelloController { @GetMapping("/hello") public ResponseEntity<String...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/endpoint/swagger/SpringDocConfig.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/endpoint/swagger/SpringDocConfig.java
package com.baeldung.endpoint.swagger; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import io.swagger.v3.oas.models.OpenAPI; import io.swagger.v3.oas.models.info.Info; @Configuration public class SpringDocConfig { @Bean public OpenAPI openA...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/endpoint/listener/EndpointsListener.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/endpoint/listener/EndpointsListener.java
package com.baeldung.endpoint.listener; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationListener; import org.springframework.context.annotation.Configuration; import org.springframework....
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/endpoint/listener/AnnotationDrivenEndpointsListener.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/endpoint/listener/AnnotationDrivenEndpointsListener.java
package com.baeldung.endpoint.listener; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.Configuration; import org.springframework.context.event.ContextRefreshedEvent; import org.springfr...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/web/controller/customer/CustomerRestController.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/web/controller/customer/CustomerRestController.java
package com.baeldung.web.controller.customer; import com.baeldung.model.Customer; import com.baeldung.service.CustomerService; import com.baeldung.web.exception.CustomerNotFoundException; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jac...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/web/dto/Foo.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/web/dto/Foo.java
package com.baeldung.web.dto; import com.thoughtworks.xstream.annotations.XStreamAlias; @XStreamAlias("Foo") public class Foo { private long id; private String name; public Foo() { super(); } public Foo(final String name) { super(); this.name = name; } public Fo...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/web/dto/Bazz.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/web/dto/Bazz.java
package com.baeldung.web.dto; public class Bazz { public String id; public String name; public Bazz(String id){ this.id = id; } public Bazz(String id, String name) { this.id = id; this.name = name; } @Override public String toString() { return "Ba...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/web/exception/CustomerNotFoundException.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/web/exception/CustomerNotFoundException.java
package com.baeldung.web.exception; public class CustomerNotFoundException extends RuntimeException { }
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/requestmapping/BarMappingExamplesController.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/requestmapping/BarMappingExamplesController.java
package com.baeldung.requestmapping; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation....
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/requestmapping/BazzNewMappingsExampleController.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/requestmapping/BazzNewMappingsExampleController.java
package com.baeldung.requestmapping; import java.util.Arrays; import java.util.List; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springfra...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http/src/main/java/com/baeldung/requestmapping/FooMappingExamplesController.java
spring-web-modules/spring-rest-http/src/main/java/com/baeldung/requestmapping/FooMappingExamplesController.java
package com.baeldung.requestmapping; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.an...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/test/java/com/baeldung/streaming/ReactiveStreamingControllerUnitTest.java
spring-web-modules/spring-rest-http-3/src/test/java/com/baeldung/streaming/ReactiveStreamingControllerUnitTest.java
package com.baeldung.streaming; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.reactive.AutoConfigureWebTestClient; import org.springframework.boot.test.context.SpringBootT...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/test/java/com/baeldung/streaming/MvcStreamingControllerUnitTest.java
spring-web-modules/spring-rest-http-3/src/test/java/com/baeldung/streaming/MvcStreamingControllerUnitTest.java
package com.baeldung.streaming; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.context.SpringBootTest; imp...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/test/java/com/baeldung/xml/UserEchoControllerIntegrationTest.java
spring-web-modules/spring-rest-http-3/src/test/java/com/baeldung/xml/UserEchoControllerIntegrationTest.java
package com.baeldung.xml; import static org.assertj.core.api.Assertions.assertThat; import com.baeldung.xml.controller.User; import com.baeldung.xml.controller.UserEchoController; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.dataformat.xml.XmlMapper; import org.junit.jupiter.api.Te...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/test/java/com/baeldung/bulkandbatchapi/BatchControllerUnitTest.java
spring-web-modules/spring-rest-http-3/src/test/java/com/baeldung/bulkandbatchapi/BatchControllerUnitTest.java
package com.baeldung.bulkandbatchapi; import com.baeldung.bulkandbatchapi.controller.BatchController; import com.baeldung.bulkandbatchapi.request.Address; import com.baeldung.bulkandbatchapi.request.Customer; import com.baeldung.bulkandbatchapi.service.AddressService; import com.baeldung.bulkandbatchapi.service.Custom...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/test/java/com/baeldung/bulkandbatchapi/BulkControllerUnitTest.java
spring-web-modules/spring-rest-http-3/src/test/java/com/baeldung/bulkandbatchapi/BulkControllerUnitTest.java
package com.baeldung.bulkandbatchapi; import com.baeldung.bulkandbatchapi.controller.BulkController; import com.baeldung.bulkandbatchapi.request.Customer; import com.baeldung.bulkandbatchapi.service.CustomerService; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.spring...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/test/java/com/baeldung/httpstatuscode/StatusControllerUnitTest.java
spring-web-modules/spring-rest-http-3/src/test/java/com/baeldung/httpstatuscode/StatusControllerUnitTest.java
package com.baeldung.httpstatuscode; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import o...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/test/java/com/baeldung/zip/ZipArchiveControllerUnitTest.java
spring-web-modules/spring-rest-http-3/src/test/java/com/baeldung/zip/ZipArchiveControllerUnitTest.java
package com.baeldung.zip; import net.lingala.zip4j.model.LocalFileHeader; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; import org.springframework.mock.web.MockHttpServletResponse; import org....
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/SpringBootRest3Application.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/SpringBootRest3Application.java
package com.baeldung; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class SpringBootRest3Application { public static void main(String[] args) { SpringApplication.run(SpringBootRest3Application.class, a...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/streaming/MvcStreamingController.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/streaming/MvcStreamingController.java
package com.baeldung.streaming; import jakarta.servlet.http.HttpServletResponse; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody; ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/streaming/ReactiveStreamingController.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/streaming/ReactiveStreamingController.java
package com.baeldung.streaming; import org.springframework.core.io.buffer.DataBuffer; import org.springframework.core.io.buffer.DataBufferUtils; import org.springframework.core.io.buffer.DefaultDataBufferFactory; import org.springframework.http.HttpHeaders; import org.springframework.http.MediaType; import org.springf...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/xml/AppConfig.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/xml/AppConfig.java
package com.baeldung.xml; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class AppConfig { public static void main(String[] args) { SpringApplication.run(AppConfig.class, args); } }
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/xml/controller/UserEchoController.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/xml/controller/UserEchoController.java
package com.baeldung.xml.controller; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.s...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/xml/controller/User.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/xml/controller/User.java
package com.baeldung.xml.controller; import java.util.Objects; public class User { private Long id; private String firstName; private String secondName; public User() { } public User(final Long id, final String firstName, final String secondName) { this.id = id; this.firstNam...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/controller/BulkController.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/controller/BulkController.java
package com.baeldung.bulkandbatchapi.controller; import com.baeldung.bulkandbatchapi.request.BulkActionType; import com.baeldung.bulkandbatchapi.request.Customer; import com.baeldung.bulkandbatchapi.request.CustomerBulkRequest; import com.baeldung.bulkandbatchapi.response.BulkStatus; import com.baeldung.bulkandbatchap...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/controller/BatchController.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/controller/BatchController.java
package com.baeldung.bulkandbatchapi.controller; import com.baeldung.bulkandbatchapi.request.Address; import com.baeldung.bulkandbatchapi.service.AddressService; import com.baeldung.bulkandbatchapi.request.Customer; import com.baeldung.bulkandbatchapi.service.CustomerService; import com.baeldung.bulkandbatchapi.reques...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/service/AddressService.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/service/AddressService.java
package com.baeldung.bulkandbatchapi.service; import com.baeldung.bulkandbatchapi.request.Address; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import java.util.*; @Service public class AddressService { private static final Logger LOGGER = LoggerFactory....
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/service/CustomerService.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/service/CustomerService.java
package com.baeldung.bulkandbatchapi.service; import com.baeldung.bulkandbatchapi.request.Customer; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import java.util.*; import static java.util.stream.Collectors.toList; @Service public class CustomerService { ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/exception/CustomErrorHandler.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/exception/CustomErrorHandler.java
package com.baeldung.bulkandbatchapi.exception; import jakarta.servlet.http.HttpServletResponse; import jakarta.validation.ConstraintViolationException; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionH...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/exception/BatchException.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/exception/BatchException.java
package com.baeldung.bulkandbatchapi.exception; public class BatchException extends RuntimeException { public BatchException(String exceptionMsg) { super(exceptionMsg); } }
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/response/BulkStatus.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/response/BulkStatus.java
package com.baeldung.bulkandbatchapi.response; public enum BulkStatus { PROCESSED, PARTIALLY_PROCESSED, NOT_PROCESSED }
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/response/CustomerBulkResponse.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/response/CustomerBulkResponse.java
package com.baeldung.bulkandbatchapi.response; import com.baeldung.bulkandbatchapi.request.Customer; import com.baeldung.bulkandbatchapi.request.BulkActionType; import java.util.List; public class CustomerBulkResponse { private BulkActionType bulkActionType; private List<Customer> customers; private Bul...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/request/CustomerBulkRequest.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/request/CustomerBulkRequest.java
package com.baeldung.bulkandbatchapi.request; import jakarta.validation.constraints.NotNull; import jakarta.validation.constraints.Size; import java.util.List; public class CustomerBulkRequest { @NotNull private BulkActionType bulkActionType; @NotNull @Size(min = 1, max = 20) private List<Custo...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/request/BulkActionType.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/request/BulkActionType.java
package com.baeldung.bulkandbatchapi.request; public enum BulkActionType { CREATE, UPDATE, DELETE }
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/request/Address.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/request/Address.java
package com.baeldung.bulkandbatchapi.request; import jakarta.validation.constraints.NotBlank; import java.io.Serializable; public class Address implements Serializable { private int id; @NotBlank private String street; @NotBlank private String city; public Address() { } public Ad...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/request/Customer.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/request/Customer.java
package com.baeldung.bulkandbatchapi.request; import jakarta.validation.constraints.NotBlank; import java.io.Serializable; public class Customer implements Serializable { private int id; @NotBlank private String name; @NotBlank private String email; @NotBlank private String address; ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/request/BatchRequest.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/bulkandbatchapi/request/BatchRequest.java
package com.baeldung.bulkandbatchapi.request; import com.fasterxml.jackson.databind.JsonNode; import jakarta.validation.constraints.NotNull; import org.springframework.http.HttpMethod; public class BatchRequest { @NotNull private HttpMethod method; @NotNull private String relativeUrl; @NotNull ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/httpstatuscode/StatusController.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/httpstatuscode/StatusController.java
package com.baeldung.httpstatuscode; import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatusCode; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import com.baeldung.httpstatusco...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/httpstatuscode/exception/CustomException.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/httpstatuscode/exception/CustomException.java
package com.baeldung.httpstatuscode.exception; import org.springframework.http.HttpStatusCode; public class CustomException extends RuntimeException { private final HttpStatusCode statusCode; public CustomException(String message, HttpStatusCode statusCode) { super(message); this.statusCode ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/httpstatuscode/exception/GlobalExceptionHandler.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/httpstatuscode/exception/GlobalExceptionHandler.java
package com.baeldung.httpstatuscode.exception; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler; @ControllerAdvice public class GlobalExceptionHandler { @ExceptionHandler(CustomExceptio...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/xwwwformurlencoded/Course.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/xwwwformurlencoded/Course.java
package com.baeldung.xwwwformurlencoded; class Course { private String name; private int hours; public String getName() { return name; } public void setName(String name) { this.name = name; } public int getHours() { return hours; } public void setHours(i...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/xwwwformurlencoded/StudentController.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/xwwwformurlencoded/StudentController.java
package com.baeldung.xwwwformurlencoded; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/xwwwformurlencoded/StudentSimple.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/xwwwformurlencoded/StudentSimple.java
package com.baeldung.xwwwformurlencoded; class StudentSimple { private String firstName; private String lastName; private String[] courses; public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } p...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/xwwwformurlencoded/StudentComplex.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/xwwwformurlencoded/StudentComplex.java
package com.baeldung.xwwwformurlencoded; class StudentComplex { private String firstName; private String lastName; private Course[] courses; public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/zip/ZipArchiveController.java
spring-web-modules/spring-rest-http-3/src/main/java/com/baeldung/zip/ZipArchiveController.java
package com.baeldung.zip; import net.lingala.zip4j.model.ZipParameters; import net.lingala.zip4j.model.enums.CompressionMethod; import net.lingala.zip4j.model.enums.EncryptionMethod; import org.apache.tomcat.util.http.fileupload.IOUtils; import org.springframework.http.ResponseEntity; import org.springframework.web.bi...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/spring-web-modules/spring-5-mvc/src/test/java/com/baeldung/Spring5ApplicationIntegrationTest.java
spring-web-modules/spring-5-mvc/src/test/java/com/baeldung/Spring5ApplicationIntegrationTest.java
package com.baeldung; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest(classes = Spring5Application.class) public class Spring5ApplicationIntegr...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false