报错信息: Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.3.RELEASE:repackage (repackage) on project jeecg-boot-module-system: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.1.3.RELEASE:repackage failed: Unable to find a single main class from the following candidates [org.jeecg.JeecgApplication, org.jeecg.URuleApplication]

SpringBoot install 报错Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.3

原因及解决方法:看了网上说spring-boot-maven-plugin 改成普通的maven-plugin,或者把启动类放在src/main/java下,我这个问题的原因是在一个模块中出现了两个SpringBoot启动类(@SpringBootApplication修饰的类)冲突了,将两个启动类合并就解决了。

相关文章:

  • 2022-01-19
  • 2022-12-23
  • 2021-06-17
  • 2021-09-30
  • 2022-12-23
  • 2021-10-24
  • 2021-08-26
猜你喜欢
  • 2022-12-23
  • 2021-05-20
  • 2022-12-23
  • 2021-11-25
  • 2022-01-11
  • 2021-05-27
  • 2022-12-23
相关资源
相似解决方案