The spring-boot-starter-parent is not a normal dependency but a parent POM for Maven projects. Declaring it in <parent> gives your project managed dependency versions, sensible plugin configuration, a Java version property, UTF-8 encoding and the Spring Boot Maven plugin setup, so you can add Spring libraries without writing version numbers.
If your project must inherit from a different parent, you can get the dependency management alone by importing spring-boot-dependencies as a BOM.
The parent itself inherits from spring-boot-dependencies, which holds the version table. On top of that it adds defaults:
| Feature | Effect |
|---|---|
| Dependency management | Versions for Spring, Jackson, Hibernate, Tomcat, logging and many more are set for you |
| Java version | Controlled by the java.version property |
| Source encoding | UTF-8 for sources and reporting |
| Plugin management | Sensible defaults for compiler, surefire, failsafe, jar, war and resources plugins |
| Compiler flag | -parameters enabled so parameter names are available to reflection |
| Spring Boot plugin | repackage goal bound, producing an executable jar |
| Resource filtering | Placeholders written as @property@ in application.properties are filtered, not ${property} |
Replace the version with the current stable Spring Boot release shown on start.spring.io. The empty <relativePath/> tells Maven to resolve the parent from the repository instead of searching a local folder. Notice that none of the dependencies declares a version.
Managed versions are exposed as properties, so you can change one without removing the parent:
The property names are listed in the Spring Boot documentation under dependency versions. Override sparingly: the managed set is tested together, and a manual override is the usual source of runtime NoSuchMethodError problems. For a security fix, prefer upgrading Spring Boot to a patch release.
Many companies require every project to extend a corporate parent. Maven allows only one parent, so import the BOM instead:
You get the version table, but not the plugin defaults, encoding settings or resource filtering. Configure the Spring Boot plugin yourself:
Gradle has no parent POM. The equivalent is the Spring Boot Gradle plugin together with the dependency management plugin or Gradle's platform support:
Use the versions that match your chosen Spring Boot release.
No. Despite the name, it is a parent POM used in the <parent> element, not an artifact you list under <dependencies>.
No. Importing spring-boot-dependencies as a BOM works with any parent, at the cost of configuring plugins yourself.
The parent changes resource filtering to use @property@ delimiters. Write [email protected]@ in properties files.
Set the java.version property. Spring Boot 3 and later require at least Java 17.
spring-boot-starter-parent is a Maven parent POM that supplies tested dependency versions, plugin defaults, UTF-8 encoding and the executable-jar packaging setup. Declare it once, set java.version, list starters without versions, and override managed versions only when you must. When a project already has a parent, import spring-boot-dependencies as a BOM instead.