Home / Function/ getVersionsMap() — spring-boot Function Reference

getVersionsMap() — spring-boot Function Reference

Architecture documentation for the getVersionsMap() function in ResourceBanner.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  758665c6_9fc3_784b_c756_9c373cdbdcc6["getVersionsMap()"]
  444c295b_1422_2220_033c_0ae13d0ed444["getVersionSource()"]
  444c295b_1422_2220_033c_0ae13d0ed444 -->|calls| 758665c6_9fc3_784b_c756_9c373cdbdcc6
  32aff40b_dfc0_3c68_815a_0c9482fe55e5["getApplicationVersion()"]
  758665c6_9fc3_784b_c756_9c373cdbdcc6 -->|calls| 32aff40b_dfc0_3c68_815a_0c9482fe55e5
  f368cafb_0345_42c4_e33b_0c519b4233bf["getBootVersion()"]
  758665c6_9fc3_784b_c756_9c373cdbdcc6 -->|calls| f368cafb_0345_42c4_e33b_0c519b4233bf
  14aec287_7c07_f0df_fda7_8101832ca6a6["getVersionString()"]
  758665c6_9fc3_784b_c756_9c373cdbdcc6 -->|calls| 14aec287_7c07_f0df_fda7_8101832ca6a6
  style 758665c6_9fc3_784b_c756_9c373cdbdcc6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/ResourceBanner.java lines 143–152

	private Map<String, @Nullable Object> getVersionsMap(Environment environment, @Nullable String defaultValue) {
		String appVersion = getApplicationVersion(environment);
		String bootVersion = getBootVersion();
		Map<String, @Nullable Object> versions = new HashMap<>();
		versions.put("application.version", getVersionString(appVersion, false, defaultValue));
		versions.put("spring-boot.version", getVersionString(bootVersion, false, defaultValue));
		versions.put("application.formatted-version", getVersionString(appVersion, true, defaultValue));
		versions.put("spring-boot.formatted-version", getVersionString(bootVersion, true, defaultValue));
		return versions;
	}

Domain

Subdomains

Calls

  • getApplicationVersion()
  • getBootVersion()
  • getVersionString()

Called By

Frequently Asked Questions

What does getVersionsMap() do?
getVersionsMap() is a function in the spring-boot codebase.
What does getVersionsMap() call?
getVersionsMap() calls 3 function(s): getApplicationVersion, getBootVersion, getVersionString.
What calls getVersionsMap()?
getVersionsMap() is called by 1 function(s): getVersionSource.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free