Spring BOM is a fairly new addition to Spring. It stands for Build-Of-Materials, and gives you pivotal’s best and tested snapshot for a given version of Spring. This is great for software development as it frees you from mixing and matching versions of jars, and setting exclusions to get your build to work.
Configuration is simply a matter of setting a build manager in your pom –[sourcecode lang=”xml”] <dependencyManagement>
You then reference the spring libraries you want to use without stating version number –[sourcecode lang=”xml”] <dependency>
One issue I had was tying Spring BOM versions to Spring Core versions which my application previously used. Spring BOM is using the release version numbers for Spring Boot, and I had to wade through the pom’s to find the required versions.
|Spring Platform BOM Version||Spring Version||Spring Data|
For future reference you need to check the spring-boot-dependencies project, which version number reconciles to the BOM version –
procrun – Java Programs as Windows Services
Auto-generating Spring Security Tutorial – Memory Realms
Can Spring Security be auto-generated?
Solving Spring NoClassDefFoundError, ClassNotFoundException and MethodNotFoundExceptions Errors