Watch Aspire live streamsDocsTry Aspire

addSpringBootApp

Method
📦 Aspire.Hosting.Java v17.0.0-preview.1.26567.5
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addSpringBootApp(
name: string,
appDirectory: string): JavaAppResource;
}

Signature

methodaddSpringBootAppbuilder
Adds a Spring Boot application to the application model, built and launched with its own Maven or Gradle wrapper.
addSpringBootApp(
name: string,
appDirectory: string): JavaAppResource
namestringThe name of the resource.
appDirectorystringThe application directory, containing `pom.xml`, `build.gradle`, `build.gradle.kts`, `settings.gradle`, or `settings.gradle.kts`. Relative paths are resolved against the AppHost directory.
JavaAppResource

Applies to

This method applies to the following types: