Saturday, 28 April 2018
Spring Boot 2.0 Upgrade
A couple of years ago, we converted our web application to Spring Boot 1.0
It was quite a new area for us - there were a few late nights and occasions where we were stuck but overall we learned a lot about Spring Boot and this framework certainly added to our whole development and deployment process.
Most recently I've stepped through the process of upgrading to Spring Boot 1.5 from 1.4 and this was pretty painless - the main change is losing Velocity as a standard library but Thymeleaf is the preferred switch.
The past couple of weeks I've taken to upgrading further to Spring Boot 2.0. Now this is a much bigger switch with much more headaches!
I really must take notes of all the steps but here's a start:
springboot-starter-social twitter and facebook has been dropped
For the time being, I've opted to comment out any references to this while I get the main app working!
spring-boot-starter-tomcat
spring-boot-starter-web
Starter-web includes servlet containers such as Jetty, Tomcat and WebFlux?
The embeddedservletcontainerfactory has been replaced.
I've been having fun getting the container to work with customised context paths we need for static content.
spring-boot-starter-jpa - spring-boot-starter-jdbc
Hikari Connection Pool is now the default - apparently it's much better but since we've invested quite some time in setting up the Tomcat connection Pool properties, I've opted to initially keep with the Tomcat CP - not as easy as you'd think!
To do so you need to exclude the Hikari CP from the starter-jpa.
A few classes have been deprecated/replaced.
The latest I am working on is the WebFlow upgrade to 2.5 from 2.4.
application context and flow xml references must be updated!
Something still not quite right as I am getting mapping[] empty errors on flow processes.
An important step is to bring all TLD/path references up to date. I've gotten some strange errors which basically mean that somewhere has an old reference to a previous version.
Subscribe to:
Comments (Atom)
