spring boot 项目 启动正常 但是用maven 打包jar后 在cmd 启动报错。

java环境 spring boot 2.0.4.RELEASE jdk 1.8 编码 UTF-8  spring-cloud.version Finchley.RELEASE;经测试 把对应的 poi 文件导入导出的文件和引入jar删除了就可以了,不删的话只能在 工具中重启不能打成jar 以下是报错信息:2019-01-23 11:17:02.224 [main] INFO  c.n...
摘要由CSDN通过智能技术生成

java环境 spring boot 2.0.4.RELEASE jdk 1.8 编码 UTF-8  spring-cloud.version Finchley.RELEASE;

经测试 把对应的 poi 文件导入导出的文件和引入jar删除了就可以了,不删的话只能在 工具中重启不能打成jar 

以下是报错信息:

2019-01-23 11:17:02.224 [main] INFO  c.n.d.modelquery.NariDcloudModelqueryApplic
ation -
                                The following profiles are active: dev
2019-01-23 11:17:02.256 [main] INFO  o.s.b.w.s.c.AnnotationConfigServletWebServe
rApplicationContext -
                                Refreshing org.springframework.boot.web.servlet.
context.AnnotationConfigServletWebServerApplicationContext@3cef309d: startup dat
e [Wed Jan 23 11:17:02 CST 2019]; parent: org.springframework.context.annotation
.AnnotationConfigApplicationContext@6e3c1e69
2019-01-23 11:17:02.989 [main] ERROR org.springframework.boot.SpringApplication
-
                                Application run failed
java.lang.IllegalStateException: Error processing condition on org.springframewo
rk.boot.autoconfigure.jmx.JmxAutoConfiguration.objectNamingStrategy
        at org.springframework.boot.autoconfigure.condition.SpringBootCondition.
matches(SpringBootCondition.java:64)
        at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(
ConditionEvaluator.java:108)
        at org.springframework.context.annotation.ConfigurationClassBeanDefiniti
onReader.loadBeanDefinitionsForBeanMethod(ConfigurationClassBeanDefinitionReader
.java:180)
        at org.springframework.context.annotation.ConfigurationClassBeanDefiniti
onReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefiniti
onReader.java:141)
        at org.springframework.context.annotation.ConfigurationClassBeanDefiniti
onReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:117)
        at org.springframework.context.annotation.ConfigurationClassPostProcesso
r.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:328)
        at org.springframework.context.annotation.ConfigurationClassPostProcesso
r.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:233)
        at org.springframework.context.support.PostProcessorRegistrationDelegate
.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.ja
va:271)
        at org.springframework.context.support.PostProcessorRegistrationDelegate
.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:91)
        at org.springframework.context.support.AbstractApplicationContext.invoke
BeanFactoryPostProcessors(AbstractApplicationContext.java:694)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:532)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicat
ionContext.refresh(ServletWebServerApplicationContext.java:140)
        at org.springframework.boot.SpringApplication.refresh(SpringApplication.
java:762)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 6
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值