Home / Class/ SampleApplication Class — spring-boot Architecture

SampleApplication Class — spring-boot Architecture

Architecture documentation for the SampleApplication class in SampleApplication.java from the spring-boot codebase.

Entity Profile

Source Code

build-plugin/spring-boot-maven-plugin/src/intTest/projects/run-arguments/src/main/java/org/test/SampleApplication.java lines 21–38

public class SampleApplication {

	public static void main(String[] args) {
		if (args.length < 2) {
			throw new IllegalArgumentException("Missing arguments " + Arrays.toString(args));
		}
		if (!args[0].startsWith("--management.endpoints.web.exposure.include=")) {
			throw new IllegalArgumentException("Invalid argument " + args[0]);
		}
		if (!args[1].startsWith("--spring.profiles.active=")) {
			throw new IllegalArgumentException("Invalid argument " + args[1]);
		}
		String endpoints = args[0].split("=")[1];
		String profile = args[1].split("=")[1];
		System.out.println("I haz been run with profile(s) '" + profile + "' and endpoint(s) '" + endpoints + "'");
	}

}

Analyze Your Own Codebase

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

Try Supermodel Free