Dependency ManagementSpring Boot manages dependencies and configuration automatically. You don't need to specify version for any of that dependencies. Spring Boot upgrades all dependencies automatically when you upgrade Spring Boot. Note - We can also specify a version by overriding Spring Boot recommendations if we think that's necessary.Note - Each release of Spring Boot is associated with a base version of the Spring Framework so we highly recommend you to not specify its version on your own.Maven Dependency Management SystemThe Maven project inherits the following feature from the parent project.
Inheriting the starter parentWe can configure our project to inherit from the spring-boot-starter-parent by simply setting as below. Note - You should only need to specify the Spring Boot version number on this dependency. If you import additional starters, you can safely exclude the version number.Changing the Java versionwe can easily set Java version for our project in the properties section as given below. Adding Spring Boot Maven PluginWe can include Maven plugin in our pom.xml file. It is used to package the project as an executable jar. We are adding it here.
Next TopicSpring Boot Properties
|