Skip to content
DocsTry Aspire
DocsTry

addJavaContainerApp

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

Signature

methodaddJavaContainerAppbuilder
Adds a Java application to the application model. Executes the containerized Java app.
addJavaContainerApp(
name: string,
image: string,
imageTag?: string): JavaAppContainerResource
namestring
imagestring
imageTagstringoptional
JavaAppContainerResource

Applies to

This method applies to the following types: