当前位置: 移动技术网 > IT编程>开发语言>Java > spring boot打包问题

spring boot打包问题

2018年09月11日  | 移动技术网IT编程  | 我要评论

小伙天生男女两套生殖系统,平阳房产网,葛晓威

  • 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右上角的配置;

2、添加maven配置;

3、在command line输入命令:clean package并点击apply;

4、点击运行;

5、找到打包的文件;

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网