springboot拆分问题记录

  1. Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.4.1:repackage (repackage) on project usermemberservice: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.4.1:repackage failed: Unable to find a single main class from the following candidates [cn.coco.ums.UmsStartApplication, cn.coco.usermemberservice.UmsStartApplication]
    解决:非启动类去除该插件
<plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
  1. 服务拆分导致服务无法启动,一直提示找不到service实现类
    解决:确保拆分服务的package和maven管理项目模块名称一致
posted @ 2021-10-26 14:04  L-robot  阅读(46)  评论(0)    收藏  举报