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

setEnvironment() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  bcb16b39_1cc9_8ad7_8ae2_fb817a35bf45["setEnvironment()"]
  6effd0c4_0207_6697_e91b_d163c77a8757["prepareContext()"]
  6effd0c4_0207_6697_e91b_d163c77a8757 -->|calls| bcb16b39_1cc9_8ad7_8ae2_fb817a35bf45
  5b8de0b8_93f1_dc4d_bc8b_9b614dc4c8e9["load()"]
  5b8de0b8_93f1_dc4d_bc8b_9b614dc4c8e9 -->|calls| bcb16b39_1cc9_8ad7_8ae2_fb817a35bf45
  ae274a0a_4be3_3db9_53e9_5b0b050b3801["environment()"]
  ae274a0a_4be3_3db9_53e9_5b0b050b3801 -->|calls| bcb16b39_1cc9_8ad7_8ae2_fb817a35bf45
  726c82da_27d4_e364_b164_00d13adf5424["runWhenHasCommandLinePropertiesLoadsWithCommandLineTakingPrecedence()"]
  726c82da_27d4_e364_b164_00d13adf5424 -->|calls| bcb16b39_1cc9_8ad7_8ae2_fb817a35bf45
  d4db57cc_14b5_f0ca_e87d_9df48c07f3ad["runWhenProfileActivatedViaSystemEnvironmentVariableWithPrefix()"]
  d4db57cc_14b5_f0ca_e87d_9df48c07f3ad -->|calls| bcb16b39_1cc9_8ad7_8ae2_fb817a35bf45
  0a59b811_10aa_4f1e_c50e_0a0121e7b00e["runWhenCustomDefaultPropertySourceLoadsWithoutReplacingCustomSource()"]
  0a59b811_10aa_4f1e_c50e_0a0121e7b00e -->|calls| bcb16b39_1cc9_8ad7_8ae2_fb817a35bf45
  f33ddcb0_16b1_a3f3_43af_0d48e507f081["loadWhenHasPostConstructShouldTriggerPostConstructWithBoundBean()"]
  f33ddcb0_16b1_a3f3_43af_0d48e507f081 -->|calls| bcb16b39_1cc9_8ad7_8ae2_fb817a35bf45
  a4456466_37ef_8bc8_2f5c_24bb5cdba70f["loadWhenEnvironmentPrefixSetShouldBind()"]
  a4456466_37ef_8bc8_2f5c_24bb5cdba70f -->|calls| bcb16b39_1cc9_8ad7_8ae2_fb817a35bf45
  bbf51126_bf48_b8ee_13c2_4423f7e84e7c["createContext()"]
  bbf51126_bf48_b8ee_13c2_4423f7e84e7c -->|calls| bcb16b39_1cc9_8ad7_8ae2_fb817a35bf45
  style bcb16b39_1cc9_8ad7_8ae2_fb817a35bf45 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java lines 1131–1134

	public void setEnvironment(@Nullable ConfigurableEnvironment environment) {
		this.isCustomEnvironment = true;
		this.environment = environment;
	}

Domain

Subdomains

Frequently Asked Questions

What does setEnvironment() do?
setEnvironment() is a function in the spring-boot codebase.
What calls setEnvironment()?
setEnvironment() is called by 9 function(s): createContext, environment, load, loadWhenEnvironmentPrefixSetShouldBind, loadWhenHasPostConstructShouldTriggerPostConstructWithBoundBean, prepareContext, runWhenCustomDefaultPropertySourceLoadsWithoutReplacingCustomSource, runWhenHasCommandLinePropertiesLoadsWithCommandLineTakingPrecedence, and 1 more.

Analyze Your Own Codebase

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

Try Supermodel Free