Visitar URL original
addJavaApp | Aspire
Watch Aspire live streamsDocsTry Aspire
Method
📦 Aspire.Hosting.Java v13.6.5-preview.1.26559.7
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addJavaApp(
name: string,
appDirectory: string): JavaAppResource;
}

Signature

methodaddJavaAppbuilder
Adds a Java application to the application model, launched with `java`.
addJavaApp(
name: string,
appDirectory: string): JavaAppResource
namestringThe name of the resource.
appDirectorystringThe application directory. Relative paths are resolved against the AppHost directory.
JavaAppResource

Applies to

This method applies to the following types: