Closed
Description
- Update
pom.xml
- Use new version (also update the comments)
- Compare dependencies
- Compare JAR size (~ +1 Mb)
- Compare memory consumption (1.3: Tasks: 22, Memory: 212.9M, 1.4: Tasks: 22, Memory: 208.5M)
- Compare time for running
mvn clean verify
- 1.3:
Started ApplicationBootstrap in 5.439 seconds (JVM running for 17.448)
,Total time: 01:08 min
- 1.4:
Started ApplicationBootstrap in 5.617 seconds (JVM running for 17.846)
,Total time: 01:43 min
)
- 1.3:
- Read the change logs
- Spring Boot 1.4.1
- https://spring.io/blog/2016/02/26/spring-boot-1-3-3-and-1-4-0-m1-available-now
- https://spring.io/blog/2016/04/13/spring-boot-1-4-0-m2-available-now
- https://spring.io/blog/2016/05/17/spring-boot-1-4-0-m3-available-now
- https://spring.io/blog/2016/07/05/spring-boot-1-4-0-rc1-available-now
- https://spring.io/blog/2016/07/28/spring-boot-1-4-released
- https://spring.io/blog/2016/09/21/spring-boot-1-4-1-and-1-3-8-available-now
- https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-1.4-Release-Notes
- https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-1.4-Configuration-Changelog
- Spring Security 4.1.3
- https://spring.io/blog/2016/03/24/spring-security-4-1-0-rc1-released
- https://spring.io/blog/2016/04/21/spring-security-4-1-0-rc2-released
- https://spring.io/blog/2016/05/05/spring-security-4-1-0-released
- https://spring.io/blog/2016/07/07/spring-security-4-1-1-released
- https://spring.io/blog/2016/08/12/spring-security-4-1-2-released
- https://spring.io/blog/2016/08/24/spring-security-4-1-3-released
- http://docs.spring.io/spring-security/site/docs/4.1.x/reference/htmlsingle/#new
- Spring Framework 4.3.3
- https://spring.io/blog/2016/04/06/spring-framework-4-3-goes-rc1
- https://spring.io/blog/2016/05/06/spring-framework-4-3-rc2-4-2-6-and-3-2-17-available-now
- https://spring.io/blog/2016/06/10/spring-framework-4-3-goes-ga
- https://spring.io/blog/2016/07/04/spring-framework-4-3-1-and-4-2-7-available-now
- 4.3.2: https://jira.spring.io/secure/ReleaseNote.jspa?version=15593&projectId=10000
- https://spring.io/blog/2016/09/19/spring-framework-4-3-3-and-4-2-8-available-now
- Jetty 9.3.x (9.3.10.v20160621) (resolution: will be updated separately)
- Spring Boot 1.4.1
- Migrate
- Migrate from log4j to log4j2 or logback
- Spring Framework 4.3: Use
@GetMapping
/@PostMapping
and deny to import@RequestMapping
- Spring Framework 4.3: run with
-Dspring.jndi.ignore=true
(or Spring Boot GH 4710 and SPR-14518) (resolution: it doesn't affect us becausejetty-jndi
is excluded by default in new version of Spring Boot) - Spring Framework 4.3: use constructor injection for @Configuration classes (and also remove
@Autowired
because of https://jira.spring.io/browse/SPR-12278 ?) - Spring Framework 4.3.1+ / Spring Security 4.1.1+: remove guard against CVE-2016-5007 (and use
mvcMatchers
?) - Spring Boot: Move
multipart.*
tospring.http.multipart.*
(Spring Boot GH 3044) - Spring Boot: Rename
spring.datasource
properties (Spring Boot GH 2183) - Spring Boot: Out-of-the-box support for status-specific error pages (Spring Boot GH 2691) (resolution: we're using custom error pages while proposed mechanism is for
ErrorMvcAutoConfiguration
that we've excluded) - Spring Boot: Enable connection validation by default in auto-configured pooled data sources (Spring Boot GH 4906)
- Spring Boot: enable mail connection validation (
MailSenderValidatorAutoConfiguration did not match: @ConditionalOnProperty (spring.mail.test-connection) did not find property 'test-connection'
) - Spring Boot: use Lombok version from BOM (Spring Boot GH 4598)
- Spring Boot: use Selenium version from BOM (Spring Boot GH 5520 and 5721)
- Spring Boot: simplify configuration for failsafe plugin (Spring Boot GH 4223)
- Spring Boot: check whether app fails to start when port isn't available and close related issue if we don't have to configure Jetty to do it
- Spring Boot: read about
@SpringBootTest
/@WebMvcTest
- Spring Boot: add debug: false and trace: false to application.properties
- Spring Boot: enable
server.max-http-header-size
/server.max-http-post-size
? (Spring Boot GH Pull 5641) - Spring Boot: enable
server.jetty.acceptors
/server.jetty.selectors
. For example, for test profile, we could use small value (Spring Boot GH Pull 5649) (resolution: after setting these properties to 1, the total amount of threads didn't change -- number of selectors threads decreased but the number of qtp threads grown) - Spring Boot: update
ErrorPage
import (Spring Boot GH 6764) - Spring Boot: update compressable MIME types (Spring Boot GH 3592)
- Spring Boot: consider adding
spring.mvc.dispatch-options-request: false
(Spring Boot GH 5965) (resolution: if we disable it, OPTIONS method still will be handled but the response would be incorrect because the response will show that all possible methods are allowed) - Update list of excluded autoconfigurations
- Spring Framework 4.3: use
@RequestAttribute
- Spring Boot: use
ErrorPageRegistry