Skip to content
Docs Try Aspire
Docs Try

addJavaContainerApp

Method
📦 CommunityToolkit.Aspire.Hosting.Java v13.4.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addJavaContainerApp(
name: string,
image: string,
imageTag?: string): JavaAppContainerResource;
}

Signature

method addJavaContainerApp builder
Adds a Java application to the application model. Executes the containerized Java app.
addJavaContainerApp(
name: string,
image: string,
imageTag?: string): JavaAppContainerResource
name string
image string
imageTag string optional
JavaAppContainerResource

Applies to

This method applies to the following types: