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

getResource() — spring-boot Function Reference

Architecture documentation for the getResource() function in ApplicationResourceLoader.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 2 called by 3

Entity Profile

Dependency Diagram

graph TD
  7751f819_e7fd_c2a2_dfa6_a4b065b8aec5["getResource()"]
  5ea8357e_a689_1ed1_dd1d_d85bc3ac4c59["getResource()"]
  5ea8357e_a689_1ed1_dd1d_d85bc3ac4c59 -->|calls| 7751f819_e7fd_c2a2_dfa6_a4b065b8aec5
  606ae328_715f_34bc_e074_17b5ad0b1bc1["convert()"]
  606ae328_715f_34bc_e074_17b5ad0b1bc1 -->|calls| 7751f819_e7fd_c2a2_dfa6_a4b065b8aec5
  521ad930_1614_5f9e_04ed_3d94867f48a1["usesResourceLoader()"]
  521ad930_1614_5f9e_04ed_3d94867f48a1 -->|calls| 7751f819_e7fd_c2a2_dfa6_a4b065b8aec5
  5ea8357e_a689_1ed1_dd1d_d85bc3ac4c59["getResource()"]
  7751f819_e7fd_c2a2_dfa6_a4b065b8aec5 -->|calls| 5ea8357e_a689_1ed1_dd1d_d85bc3ac4c59
  5f601012_52cd_05a8_0dca_b3765958e2aa["resolveFile()"]
  7751f819_e7fd_c2a2_dfa6_a4b065b8aec5 -->|calls| 5f601012_52cd_05a8_0dca_b3765958e2aa
  style 7751f819_e7fd_c2a2_dfa6_a4b065b8aec5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/io/ApplicationResourceLoader.java lines 184–194

		@Override
		public Resource getResource(String location) {
			Resource resource = super.getResource(location);
			if (this.workingDirectory == null) {
				return resource;
			}
			if (!resource.isFile()) {
				return resource;
			}
			return resolveFile(resource, this.workingDirectory);
		}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does getResource() do?
getResource() is a function in the spring-boot codebase.
What does getResource() call?
getResource() calls 2 function(s): getResource, resolveFile.
What calls getResource()?
getResource() is called by 3 function(s): convert, getResource, usesResourceLoader.

Analyze Your Own Codebase

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

Try Supermodel Free