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

setAdditionalProfiles() — spring-boot Function Reference

Architecture documentation for the setAdditionalProfiles() function in SpringApplication.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  fe38c8d5_f926_3c8d_1673_0d1e9faf22df["setAdditionalProfiles()"]
  f5ecfeee_2faa_bfff_05c7_ad8e17034d42["run()"]
  f5ecfeee_2faa_bfff_05c7_ad8e17034d42 -->|calls| fe38c8d5_f926_3c8d_1673_0d1e9faf22df
  5fd7e0ea_322d_417d_aeea_5f696a3e93fb["profiles()"]
  5fd7e0ea_322d_417d_aeea_5f696a3e93fb -->|calls| fe38c8d5_f926_3c8d_1673_0d1e9faf22df
  dfd8607e_a468_85b7_e6fd_142525185749["additionalProfiles()"]
  dfd8607e_a468_85b7_e6fd_142525185749 -->|calls| fe38c8d5_f926_3c8d_1673_0d1e9faf22df
  2b39b4e7_2cf3_67d6_44c4_6faf2aa8591b["runWhenProfileSpecificMandatoryLocationDoesNotExistShouldFailWhenProfileActive()"]
  2b39b4e7_2cf3_67d6_44c4_6faf2aa8591b -->|calls| fe38c8d5_f926_3c8d_1673_0d1e9faf22df
  bbbc7549_8d6b_da91_0201_c4c83c6de30e["runWhenProgrammaticallySetProfilesLoadsWithSetProfilesTakePrecedenceOverDefaultProfile()"]
  bbbc7549_8d6b_da91_0201_c4c83c6de30e -->|calls| fe38c8d5_f926_3c8d_1673_0d1e9faf22df
  4485a2d7_4091_8fa6_faf8_b107ebcdf594["runWhenTwoProfilesSetProgrammaticallyLoadsWithPreservedProfileOrder()"]
  4485a2d7_4091_8fa6_faf8_b107ebcdf594 -->|calls| fe38c8d5_f926_3c8d_1673_0d1e9faf22df
  0b3223cb_c034_36d3_d83e_f1bfac893d3c["runWhenProfilesPresentBeforeConfigFileProcessingAugmentsProfileActivatedByConfigFile()"]
  0b3223cb_c034_36d3_d83e_f1bfac893d3c -->|calls| fe38c8d5_f926_3c8d_1673_0d1e9faf22df
  5dd95e5e_6921_a789_b7d9_76503fc8850f["runWhenDuplicateProfileSetProgrammaticallyAndViaPropertyLoadsWithProfiles()"]
  5dd95e5e_6921_a789_b7d9_76503fc8850f -->|calls| fe38c8d5_f926_3c8d_1673_0d1e9faf22df
  50d0ddda_123a_0134_85ab_d1e062627de7["loadWhenProfileInMultiDocumentFilesLoadsExpectedProperties()"]
  50d0ddda_123a_0134_85ab_d1e062627de7 -->|calls| fe38c8d5_f926_3c8d_1673_0d1e9faf22df
  0375bcde_da56_22cf_704a_a469f72c9dbf["runWhenMultipleActiveProfilesWithMultiDocumentFilesLoadsInOrderOfDocument()"]
  0375bcde_da56_22cf_704a_a469f72c9dbf -->|calls| fe38c8d5_f926_3c8d_1673_0d1e9faf22df
  e19a0255_9a7a_0629_15f8_527ecaa7abb1["runWhenHasAndProfileExpressionLoadsExpectedProperties()"]
  e19a0255_9a7a_0629_15f8_527ecaa7abb1 -->|calls| fe38c8d5_f926_3c8d_1673_0d1e9faf22df
  846ca806_c464_4954_71f2_e7e26116b4e9["runWhenHasComplexProfileExpressionsLoadsExpectedProperties()"]
  846ca806_c464_4954_71f2_e7e26116b4e9 -->|calls| fe38c8d5_f926_3c8d_1673_0d1e9faf22df
  8861f650_d3ef_2b8a_6310_b8e8a2ff367e["runWhenProfileExpressionsDoNotMatchLoadsExpectedProperties()"]
  8861f650_d3ef_2b8a_6310_b8e8a2ff367e -->|calls| fe38c8d5_f926_3c8d_1673_0d1e9faf22df
  802d7eaa_6a60_31f8_1d86_85f3ffeab5ea["runWhenHasNegatedProfilesWithProfileActiveLoadsExpectedProperties()"]
  802d7eaa_6a60_31f8_1d86_85f3ffeab5ea -->|calls| fe38c8d5_f926_3c8d_1673_0d1e9faf22df
  style fe38c8d5_f926_3c8d_1673_0d1e9faf22df fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java lines 1106–1108

	public void setAdditionalProfiles(String... profiles) {
		this.additionalProfiles = Collections.unmodifiableSet(new LinkedHashSet<>(Arrays.asList(profiles)));
	}

Domain

Subdomains

Frequently Asked Questions

What does setAdditionalProfiles() do?
setAdditionalProfiles() is a function in the spring-boot codebase.
What calls setAdditionalProfiles()?
setAdditionalProfiles() is called by 17 function(s): additionalProfiles, loadWhenProfileInMultiDocumentFilesLoadsExpectedProperties, postProcessEnvironmentWhenHasAdditionalProfilesOnSpringApplicationUsesAdditionalProfiles, profiles, run, runWhenDuplicateProfileSetProgrammaticallyAndViaPropertyLoadsWithProfiles, runWhenHasAndProfileExpressionLoadsExpectedProperties, runWhenHasComplexProfileExpressionsLoadsExpectedProperties, and 9 more.

Analyze Your Own Codebase

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

Try Supermodel Free