Managing web application changes
Web applications, and hence RESTful applications, as we mostly worked with in this book, have a few behavior changes between Spring Boot 2 and 3. Some of them may impact your application. Some changes are related to internal components, and you won’t be affected unless your application relies on those internal components. The changes between Spring Boot 2 and 3 are as follows:
- The
server.max-http-header-size
property is a setting that indicates the maximum size that the headers of the requests managed by the application may have. That property was managed differently depending on the embedded web server used. It has been deprecated in favor ofserver.max-http-request-header-size,
and it’s managed consistently by all possible embedded web servers. - The phases for graceful shutdown have changed. When an application is shut down, Spring Boot sends events in different phases, and the application can be subscribed to those events...