spring boot打包问题
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、找到打包的文件;
上一篇: NSTimer 不工作 不调用方法
推荐阅读
-
python打包exe文件的问题总结及解决办法
-
java-使用war将spring-boot和angular 7应用程序部署到tomcat 8.5中
-
(转)Spring boot 切换配置文件到yaml
-
将Spring Boot JAR应用程序转换为WAR
-
将Spring Boot应用程序绑定到Cloud Foundry中的服务的方法
-
Spring Boot应用程序创建可部署的war文件到tomcat
-
将Spring Boot应用程序注册成为系统服务
-
将Spring Boot程序打包成docker镜像-超简版
-
spring Boot环境下dubbo+zookeeper的一个基础讲解与示例
-
Spring Boot使用redis做数据缓存