run() — spring-boot Function Reference
Architecture documentation for the run() function in SpringApplication.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD f5ecfeee_2faa_bfff_05c7_ad8e17034d42["run()"] 89cfa04a_3922_680e_945d_5b4338252cc7["run()"] 89cfa04a_3922_680e_945d_5b4338252cc7 -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42 3613e214_49bf_015b_c43f_7f8a1274fb0b["run()"] 3613e214_49bf_015b_c43f_7f8a1274fb0b -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42 0b65421b_309c_7ee2_a809_ee2ea4c4c274["validateReadyFlag()"] 0b65421b_309c_7ee2_a809_ee2ea4c4c274 -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42 ca1eb37d_8604_c655_f4d1_7183b9dbda4d["environmentIsExposed()"] ca1eb37d_8604_c655_f4d1_7183b9dbda4d -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42 c906105b_805c_5adf_2dec_9f17acc6a33d["whenEnvironmentContainsServerPortsPropertySourceEmbeddedWebApplicationIsDetected()"] c906105b_805c_5adf_2dec_9f17acc6a33d -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42 8889ba9d_fde7_7c93_c008_3a9a1d97e0bc["shutdownApp()"] 8889ba9d_fde7_7c93_c008_3a9a1d97e0bc -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42 ba595d06_73e5_42e2_1f94_eeaeb5684a5e["profileAndProperties()"] ba595d06_73e5_42e2_1f94_eeaeb5684a5e -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42 a3c18294_1521_b108_b903_eb11860d8063["propertiesAsMap()"] a3c18294_1521_b108_b903_eb11860d8063 -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42 fd7f2185_3a87_d0b2_5f33_529f77c81fe0["parentFirstWithDifferentProfile()"] fd7f2185_3a87_d0b2_5f33_529f77c81fe0 -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42 c840bba8_cffb_2788_ba85_278a484de45a["parentWithDifferentProfile()"] c840bba8_cffb_2788_ba85_278a484de45a -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42 66982f2a_bb15_aefa_89ce_3b3dd9eed9cc["parentFirstWithDifferentProfileAndExplicitEnvironment()"] 66982f2a_bb15_aefa_89ce_3b3dd9eed9cc -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42 30b3a47a_8b84_3c82_942f_93c44024b7c3["parentContextIdentical()"] 30b3a47a_8b84_3c82_942f_93c44024b7c3 -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42 7d1e8ded_e24f_3ca0_8f79_552de5d59039["initializersCreatedOnce()"] 7d1e8ded_e24f_3ca0_8f79_552de5d59039 -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42 d28e6957_4834_cee9_9dd5_1a07ba1f1778["initializersCreatedOnceForChild()"] d28e6957_4834_cee9_9dd5_1a07ba1f1778 -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42 style f5ecfeee_2faa_bfff_05c7_ad8e17034d42 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java lines 1534–1543
public SpringApplication.Running run(String... args) {
RunListener runListener = new RunListener();
SpringApplicationHook hook = new SingleUseSpringApplicationHook((springApplication) -> {
springApplication.addPrimarySources(this.sources);
springApplication.setAdditionalProfiles(this.additionalProfiles.toArray(String[]::new));
return runListener;
});
withHook(hook, () -> this.main.accept(args));
return runListener;
}
Domain
Subdomains
Calls
- SingleUseSpringApplicationHook()
- addPrimarySources()
- run()
- setAdditionalProfiles()
- withHook()
Called By
- addBootstrapRegistryInitializer()
- base64ResourceResolves()
- bootstrapsApplicationContext()
- checkOrderOfInitializer()
- environmentIsExposed()
- initializersCreatedOnce()
- initializersCreatedOnceForChild()
- initializersIncludeDefaults()
- loadWhenCustomDefaultProfileAndActiveFromPreviousSourceDoesNotActivateDefault()
- loadWhenEnvironmentPrefixSetShouldBind()
- loadWhenHasConfigLocationAsFile()
- loadWhenHasRelativeConfigLocationUsesFileLocation()
- loadWhenHasWhitespaceTrims()
- loadWhenProfileInMultiDocumentFilesLoadsExpectedProperties()
- parentContextIdentical()
- parentFirstWithDifferentProfile()
- parentFirstWithDifferentProfileAndExplicitEnvironment()
- parentWithDifferentProfile()
- profileAndProperties()
- propertiesAsMap()
- run()
- run()
- runLoadsApplicationPropertiesOnClasspath()
- runLoadsApplicationYamlOnClasspath()
- runLoadsFileWithCustomName()
- runWhenActiveProfilesCanBeConfiguredUsingPlaceholdersResolvedAgainstTheEnvironmentLoadsExpectedProperties()
- runWhenActiveProfilesDoesNotLoadDefault()
- runWhenAdditionalLocationAndLocationLoadsWithAdditionalTakingPrecedenceOverConfigured()
- runWhenConfigLocationHasMandatoryDirectoryThatDoesntExistThrowsException()
- runWhenConfigLocationHasNonOptionalEmptyFileDirectoryDoesNotThrowException()
- runWhenConfigLocationHasNonOptionalEmptyFileDoesNotThrowException()
- runWhenConfigLocationHasNonOptionalMissingClasspathDirectoryThrowsLocationNotFoundException()
- runWhenConfigLocationHasNonOptionalMissingFileDirectoryThrowsResourceNotFoundException()
- runWhenConfigLocationHasOptionalMissingDirectoryContinuesToLoad()
- runWhenConfigLocationHasUnknownFileExtensionFailsFast()
- runWhenCustomDefaultProfileSameAsActiveFromFileActivatesProfile()
- runWhenCustomDefaultPropertySourceLoadsWithoutReplacingCustomSource()
- runWhenDuplicateProfileSetProgrammaticallyAndViaPropertyLoadsWithProfiles()
- runWhenHasActiveProfileConfigurationInMultiDocumentFileLoadsInExpectedOrder()
- runWhenHasActiveProfilesFromDefaultPropertiesAndFileLoadsWithActiveProfilesFromFileTakingPrecedence()
- runWhenHasActiveProfilesFromMultipleAdditionalLocationsWithOneSwitchedOffLoadsExpectedProperties()
- runWhenHasActiveProfilesFromMultipleLocationsActivatesProfileFromOneLocation()
- runWhenHasAdditionalLocationLoadsWithAdditionalTakingPrecedenceOverDefaultLocation()
- runWhenHasAndProfileExpressionLoadsExpectedProperties()
- runWhenHasCommandLinePropertiesLoadsWithCommandLineTakingPrecedence()
- runWhenHasComplexProfileExpressionsLoadsExpectedProperties()
- runWhenHasCustomDefaultProfileLoadsDefaultProfileFile()
- runWhenHasCustomSpringConfigLocationLoadsAllFromSpecifiedLocation()
- runWhenHasDefaultPropertiesIncludesDefaultPropertiesLast()
- runWhenHasDefaultPropertiesWithConfigNameLoadsExpectedProperties()
- runWhenHasIncludedProfilesActivatesProfiles()
- runWhenHasIncludedProfilesWithListSyntaxWithProfileSpecificDocumentThrowsException()
- runWhenHasIncludedProfilesWithPlaceholderActivatesProfiles()
- runWhenHasIncludedProfilesWithProfileSpecificDocumentThrowsException()
- runWhenHasLocalFileLoadsWithLocalFileTakingPrecedenceOverClasspath()
- runWhenHasNegatedProfilesLoadsExpectedProperties()
- runWhenHasNegatedProfilesWithProfileActiveLoadsExpectedProperties()
- runWhenHasNonOptionalImportAndIgnoreNotFoundPropertyDoesNotThrowException()
- runWhenHasNonOptionalImportThrowsException()
- runWhenHasProfileSpecificFileWithActiveOnProfileProperty()
- runWhenHasProfileSpecificImportWithImportImportsSecondProfileSpecificFile()
- runWhenHasPropertyInEarlierDocumentLoads()
- runWhenHasPropertyInEarlierProfileDocumentThrowsException()
- runWhenHasPropertyInProfileDocumentThrowsException()
- runWhenHasSystemPropertyLoadsWithSystemPropertyTakingPrecedence()
- runWhenHasWildcardLocationLoadsFromAllMatchingLocations()
- runWhenHasYamlWithCommaSeparatedMultipleProfilesLoadsExpectedProperties()
- runWhenHasYamlWithListProfilesLoadsExpectedProperties()
- runWhenImportFromEarlierDocumentUsesPlaceholder()
- runWhenImportUsesPlaceholder()
- runWhenImportWithProfileVariantAndDirectProfileImportOrdersPropertySourcesCorrectly()
- runWhenImportWithProfileVariantOrdersPropertySourcesCorrectly()
- runWhenImportingIncludesParentOrigin()
- runWhenMandatoryWildcardDirectoryHasEmptyDirectoryDoesNotThrowException()
- runWhenMandatoryWildcardDirectoryHasNoSubdirectoriesThrows()
- runWhenMandatoryWildcardFileDoesNotExistThrowsException()
- runWhenMultipleActiveProfilesWithMultiDocumentFilesLoadsInOrderOfDocument()
- runWhenMultipleAdditionalLocationsLoadsWithLastWinning()
- runWhenMultipleCustomNamesLoadsEachName()
- runWhenNoActiveProfilesLoadsDefaultProfileFile()
- runWhenOneCustomOptionalLocationDoesNotExistLoadsOthers()
- runWhenOptionalWildcardDirectoryDoesNotExistDoesNotThrowException()
- runWhenOptionalWildcardDirectoryHasNoSubdirectoriesDoesNotThrow()
- runWhenOptionalWildcardFileDoesNotExistDoesNotThrowException()
- runWhenProfileActivatedViaSystemEnvironmentVariableWithPrefix()
- runWhenProfileExpressionsDoNotMatchLoadsExpectedProperties()
- runWhenProfilePropertiesUsedInPlaceholdersLoadsWithResolvedPlaceholders()
- runWhenProfileSpecificMandatoryLocationDoesNotExistShouldFailWhenProfileActive()
- runWhenProfileSpecificMandatoryLocationDoesNotExistShouldNotFail()
- runWhenProfilesActivatedViaBracketNotationSetsProfiles()
- runWhenProfilesPresentBeforeConfigFileProcessingAugmentsProfileActivatedByConfigFile()
- runWhenProgrammaticallySetProfilesLoadsWithSetProfilesTakePrecedenceOverDefaultProfile()
- runWhenPropertiesAndYamlShouldPreferProperties()
- runWhenPropertiesFromCustomPropertySourceLoaderShouldLoadFromCustomSource()
- runWhenResolvedIsOptionalDoesNotThrowException()
- runWhenTwoProfilesSetProgrammaticallyLoadsWithPreservedProfileOrder()
- runWhenUsingCustomResourceLoader()
- runWhenUsingInvalidPropertyThrowsException()
- shutdownApp()
- sourcesWithBoundSources()
- testWithProfile()
- testWithoutProfile()
- validateReadyFlag()
- whenEnvironmentContainsServerPortsPropertySourceEmbeddedWebApplicationIsDetected()
- withLoggingLevel()
Source
Frequently Asked Questions
What does run() do?
run() is a function in the spring-boot codebase.
What does run() call?
run() calls 5 function(s): SingleUseSpringApplicationHook, addPrimarySources, run, setAdditionalProfiles, withHook.
What calls run()?
run() is called by 105 function(s): addBootstrapRegistryInitializer, base64ResourceResolves, bootstrapsApplicationContext, checkOrderOfInitializer, environmentIsExposed, initializersCreatedOnce, initializersCreatedOnceForChild, initializersIncludeDefaults, and 97 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free