<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.zbeats.dashboard</groupId> <artifactId>zbpro-api-parent</artifactId> <version>1.0-SNAPSHOT</version> <packaging>pom</packaging> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.4.RELEASE</version> </parent> <modules> <module>zbpro-api</module> <module>zbpro-cloud</module> </modules> <properties> <start-class>main.java.com.zbeats.app.api.AppAPIApplication</start-class> <aws.java.sdk.version>2.18.16</aws.java.sdk.version> <skip.org.cyclonedx>false</skip.org.cyclonedx> </properties> </project> 子模块启动类的位置是zbpro-api/src/main/java/com/zbeats/WebAPIApplication.java <start-class>应该如何修改
时间: 2023-07-09 16:04:19 浏览: 208
你需要将 <start-class> 的值修改为 zbpro-api 模块中的启动类的全路径,即 com.zbeats/WebAPIApplication。修改后的 pom.xml 文件如下所示:
```
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.zbeats.dashboard</groupId>
<artifactId>zbpro-api-parent</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.4.RELEASE</version>
</parent>
<modules>
<module>zbpro-api</module>
<module>zbpro-cloud</module>
</modules>
<properties>
<start-class>com.zbeats/WebAPIApplication</start-class>
<aws.java.sdk.version>2.18.16</aws.java.sdk.version>
<skip.org.cyclonedx>false</skip.org.cyclonedx>
</properties>
</project>
```
阅读全文