zoukankan      html  css  js  c++  java
  • springboot maven打包war项目异常,打包war为1kb

    在工作打包war只为1kb

    错误代码:

    [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.5.4.RELEASE:repackage (default) on project demo: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:1.5.4.RELEASE:repackage failed: Unable to find a single main class from the following candidates [wztc.Application, wztc.WztcApplication] -> [Help 1]

    错误截图:(请右击查看大图)

    解决办法:

    写了两个Application,所以出现打包错误。但是运行没有错误。删除其中一个application即可

  • 相关阅读:
    占卜DIY
    飞行员兄弟
    给树染色
    国王游戏
    雷达设备
    畜栏预定
    防晒
    去雨系列论文笔记
    First day
    如何用fprintf写十六进制 并控制格式
  • 原文地址:https://www.cnblogs.com/chengyungzheng/p/7010200.html
Copyright © 2011-2022 走看看