欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

spring boot打包问题

程序员文章站 2022-07-05 14:32:26
java.lang.IllegalArgumentException: No auto configuration classes found in META INF/spring.factories. If you are using a custom packaging, make sure t ......
  • java.lang.illegalargumentexception: no auto configuration classes found in meta-inf/spring.factories. if you are using a custom packaging, make sure that file is correct.
    at org.springframework.util.assert.notempty(assert.java:450)
    at org.springframework.boot.autoconfigure.autoconfigurationimportselector.getcandidateconfigurations(autoconfigurationimportselector.java:160)
    at org.springframework.boot.autoconfigure.autoconfigurationimportselector.selectimports(autoconfigurationimportselector.java:96)
    at org.springframework.boot.autoconfigure.autoconfigurationimportselector$autoconfigurationgroup.process(autoconfigurationimportselector.java:386)
    at org.springframework.context.annotation.configurationclassparser$deferredimportselectorgrouping.getimports(configurationclassparser.java:828)
    at org.springframework.context.annotation.configurationclassparser.processdeferredimportselectors(configurationclassparser.java:563)
    at org.springframework.context.annotation.configurationclassparser.parse(configurationclassparser.java:188)
    at org.springframework.context.annotation.configurationclasspostprocessor.processconfigbeandefinitions(configurationclasspostprocessor.java:316)
    at org.springframework.context.annotation.configurationclasspostprocessor.postprocessbeandefinitionregistry(configurationclasspostprocessor.java:233)
    at org.springframework.context.support.postprocessorregistrationdelegate.invokebeandefinitionregistrypostprocessors(postprocessorregistrationdelegate.java:271)
    at org.springframework.context.support.postprocessorregistrationdelegate.invokebeanfactorypostprocessors(postprocessorregistrationdelegate.java:91)
    at org.springframework.context.support.abstractapplicationcontext.invokebeanfactorypostprocessors(abstractapplicationcontext.java:694)
    at org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:532)
    at org.springframework.boot.web.servlet.context.servletwebserverapplicationcontext.refresh(servletwebserverapplicationcontext.java:140)
    at org.springframework.boot.springapplication.refresh(springapplication.java:762)
    at org.springframework.boot.springapplication.refreshcontext(springapplication.java:398)
    at org.springframework.boot.springapplication.run(springapplication.java:330)
    at org.springframework.boot.springapplication.run(springapplication.java:1258)
    at org.springframework.boot.springapplication.run(springapplication.java:1246)
    at cn.argonavis.gphelper.gphelperapplication.main(gphelperapplication.java:10)
    15:07:21.145 [main] info org.springframework.boot.web.servlet.context.annotationconfigservletwebserverapplicationcontext - closing org.springframework.boot.web.servlet.context.annotationconfigservletwebserverapplicationcontext@1fe1d71: startup date [tue sep 11 15:07:20 cst 2018]; root of context hierarchy
    15:07:21.146 [main] debug org.springframework.beans.factory.support.defaultlistablebeanfactory - destroying singletons in org.springframework.beans.factory.support.defaultlistablebeanfactory@3047e6: defining beans [org.springframework.context.annotation.internalconfigurationannotationprocessor,org.springframework.context.annotation.internalautowiredannotationprocessor,org.springframework.context.annotation.internalrequiredannotationprocessor,org.springframework.context.annotation.internalcommonannotationprocessor,org.springframework.context.event.internaleventlistenerprocessor,org.springframework.context.event.internaleventlistenerfactory,gphelperapplication]; root of factory hierarchy

  • ***.jar中没有主清单属性;

使用以下方法上面的问题一次解决:
1、点击idea右上角的配置;
spring boot打包问题
2、添加maven配置;
spring boot打包问题
3、在command line输入命令:clean package并点击apply;
spring boot打包问题
4、点击运行;
spring boot打包问题
5、找到打包的文件;
spring boot打包问题