Docker报 no main manifest attribute, in xxx.jar

pom 文件的 build 标签加上 spring-boot-maven-plugin 插件即可。


  org.springframework.boot
  spring-boot-maven-plugin=
  
       
           package
           
               repackage
           
       
  
  
     true
      com.xxx.xxx.xxx
  

你可能感兴趣的:(Docker,spring,boot,maven,插件,打包,配置)