JavaAppResource.withMainClass
Method
interface JavaAppResource { // ... omitted for brevity withMainClass(mainClass: string): JavaAppResource;}Signature
method
withMainClass builderSets the main class an IDE launches when running or debugging this application. Has no effect on how Aspire starts the process, which is decided by the JAR path, Maven goal, or Gradle task.
withMainClass(mainClass: string): JavaAppResourceParameters
mainClass stringThe fully qualified name of the class declaring `main`, for example `com.example.Application`.Returns
JavaAppResource Defined on
This method is defined on the following type: