<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<!--是为了解决Unable to find main class的问题,当然,如果写了简单的main函数这几行可以不写~-->
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
<resources>
<!--打包src/main/java下面的属性文件和xml文件-->
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<!-- 是否替换资源中的属性-->
<filtering>false</filtering>
</resource>
</resources>
</build>
Springboot子模块Unable to find main class
最新推荐文章于 2024-08-07 11:16:15 发布