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、找到打包的文件;
推荐阅读
-
【spring-boot 源码解析】spring-boot 依赖管理梳理图
-
Spring boot 入门(一):快速搭建Spring boot项目
-
Spring的并发问题——有状态Bean和无状态Bean
-
只需一步,在Spring Boot中统一Restful API返回值格式与统一处理异常
-
Spring Boot Security OAuth2 实现支持JWT令牌的授权服务器
-
spring boot2.0.4集成druid,用jmeter并发测试工具调用接口,druid查看监控的结果
-
使用Spring boot + jQuery上传文件(kotlin)功能实例详解
-
spring boot + jpa + kotlin入门实例详解
-
Spring boot 集成 Druid 数据源过程详解
-
详解Spring Boot Mysql 版本驱动连接池方案选择