求助,Spring Boot启动Eureka报错!

使用Spring Boot Eureka启动注册中心时报错,
Spring Boot 版本:1.5.2.RELEASE
Spring Cloud 版本:Dalston.RC1
或者
Spring Boot 版本:2.0.2.RELEASE
Spring Cloud 版本:Finchley.SR2

两种版本都是报一样的错误。

报错信息如下:

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-03-30 09:45:19.682 ERROR 6436 --- [ main] o.s.boot.SpringApplication : Application run failed

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.cloud.netflix.archaius.ArchaiusAutoConfiguration': Unsatisfied dependency expressed through field 'externalConfigurations'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurableEnvironmentConfiguration' defined in class path resource [org/springframework/cloud/netflix/archaius/ArchaiusAutoConfiguration.class]: Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.apache.commons.configuration.AbstractConfiguration] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:587) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:91) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:373) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1348) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:578) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:760) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:869) ~[spring-context-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550) ~[spring-context-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) [spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395) [spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:327) [spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255) [spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243) [spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
at com.eureka.demo.DemoApplication.main(DemoApplication.java:12) [classes/:na]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurableEnvironmentConfiguration' defined in class path resource [org/springframework/cloud/netflix/archaius/ArchaiusAutoConfiguration.class]: Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.apache.commons.configuration.AbstractConfiguration] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:251) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1325) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1291) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1193) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1096) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1065) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:584) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
... 19 common frames omitted
Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.apache.commons.configuration.AbstractConfiguration] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:659) ~[spring-core-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:519) ~[spring-core-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.buildLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:207) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.findLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:188) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(InitDestroyAnnotationBeanPostProcessor.java:127) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(CommonAnnotationBeanPostProcessor.java:297) ~[spring-context-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:1020) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
... 31 common frames omitted
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/lang/text/StrLookup
at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.8.0_161]
at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[na:1.8.0_161]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[na:1.8.0_161]
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) ~[na:1.8.0_161]
at java.net.URLClassLoader.access$100(URLClassLoader.java:73) ~[na:1.8.0_161]
at java.net.URLClassLoader$1.run(URLClassLoader.java:368) ~[na:1.8.0_161]
at java.net.URLClassLoader$1.run(URLClassLoader.java:362) ~[na:1.8.0_161]
at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_161]
at java.net.URLClassLoader.findClass(URLClassLoader.java:361) ~[na:1.8.0_161]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_161]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338) ~[na:1.8.0_161]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_161]
at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.8.0_161]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) ~[na:1.8.0_161]
at java.lang.Class.getDeclaredMethods(Class.java:1975) ~[na:1.8.0_161]
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:641) ~[spring-core-5.0.6.RELEASE.jar:5.0.6.RELEASE]
... 38 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang.text.StrLookup
at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_161]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_161]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338) ~[na:1.8.0_161]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_161]
... 54 common frames omitted

1个回答

你引入这个jar包吗


org.springframework.boot
spring-boot-starter-web

u014373554
BellCalderon 回复sqaing: 需要引入这个jar 不然启动会报错误
6 个月之前 回复
sqaing
sqaing 没有,需要这个包么?
6 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
spring cloud,spring boot ,eureka
该例子为spring cloud,spring boot ,eureka的一个整合,适合新入门的童鞋学习用
启动eureka报错
"C:\Program Files\Java\jdk1.8.0_201\bin\java.exe" -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.liveBeansView.mbeanDomain -Dspring.appl...
启动Eureka注册中心报错
启动Eureka注册中心报错 错误信息 com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server javax.ws.rs.WebApplicationException: null 原因 在application.yml文件中, eureka: c...
spring boot 服务注册中心Eureka
一.创建服务注册中心   首先创建一个springboot服务选择创建Eureka servicepom文件:<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-in...
spring boot、eureka学习总结
spring boot(多数据源、事务控制、eureka注册、返回jsp页面、向jsp页面传值、webService接口发布)、eureka注册与发现学习总结
启动spring boot项目maven报错
用spring-boot:run启动项目报错,刚接触,求大神指导。 [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.5.2.RELEASE:run (default-cli) on project jspxcms: Execution default-cli of goal or
Spring boot +JPA 启动项目 报错
A component required a bean of type 'com.example.demo.repository.AyUserRepository' that could not be found. Description: A component required a bean of type 'com.example.demo.repository.AyUserReposi...
spring boot 不连接数据库启动,报错问题
用spring boot 搭建的项目,在配置文件不连接数据库启动项目会报错。原因在于spring boot默认会加载org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration类,DataSourceAutoConfiguration类使用了@Configuration注解向spring注入了dataSource b...
求助帖子:spring boot 项目 依赖报错
先介绍一下我的项目情况。 rnrn我这个项目是多模块maven项目rnrn我的计划是:common是 核心模块-与数据库交互、service、dao、control等。rnmobile是前端展示页面情况rnrn1、 common-bootrnrn2、mobile-bootrnrncommon 包含了 redis、动态切换主从数据库rnrn目前 的情况是 单独启动都可以启动运行。。rnrn然后在mobile依赖common-boot的时候,就出现了错误,错误麻烦大家下载程序帮我弄一下,谢谢。rnrn经过努力,确实搞不定了。 rnrn在此请求帮我看看,调试一下项目。 rnrn程序 地址:rnhttps://gitee.com/william007/william_boot
Spring Boot报错问题解决
报错提示: [17360] 31 Jul 08:36:10.918 # Creating Server TCP listening socket *:6379: bind: Unknown error解决方法: redis>redis-cli.exe 127.0.0.1:6379> shutdown not connected> exit解决后:
spring Boot上传文件报错。
spring Boot版本 1.4.5  报错原因:org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is java.io.IOException: The temporary upload location [C:\U
spring boot初始化报错
解决方法: 将pom文件中添加如下依赖         <dependency>               <groupId>org.springframework.boot</groupId>               <artifactId>spring-boot-starter-tomcat</artifactId>  ...
spring boot报错
我按照资料练习spring boot,报错,报错信息如下:rnProject build error: Non-resolvable parent POM: Failure to find org.springframework.boot:spring-boot-starter0-parent:pom:1.3.0.BUILD-SNAPSHOT in http://repo.spring.io/rn snapshot was cached in the local repository, resolution will not be reattempted until the update interval of spring-snapshots has elapsed or updates are forced and rn 'parent.relativePath' points at wrong local POMrnrn我的setting文件:rnrnrn E:\IDE\repositoryrnrn rn rn mirrorIdrn repositoryIdrn Human Readable Name for this Mirror.rn http://my.repository.com/repo/pathrn rn rn rn alimavenrn centralrn aliyun mavenrn http://maven.aliyun.com/nexus/content/groups/publicrn rn rnrnpom.xml:rnrn 4.0.0rn rn com.examplern myprojctrn 0.0.1-SNAPSHOTrn rn rn spring-boot-starter0-parentrn org.springframework.bootrn 1.3.0.BUILD-SNAPSHOTrn rn rn rn rn org.springframework.bootrn spring-boot-starter-webrn rn rn rn rn rn rn org.springframework.bootrn spring-boot-maven-pluginrn rn rn rn rn rn rn spring-snapshotsrn http://repo.spring.io/snapshotrn truern rn rn spring-milestonesrn http://repo.spring.io/milestonern rn rn rn rn spring-snapshotsrn http://repo.spring.io/snapshotrn rn rn spring-milestonesrn http://repo.spring.io/milestonern rn rnrnrn按照网上的方法也试了好多次都没有效果,望各位大神指点rnrnrn
Spring Boot测试报错
文章目录报错信息解决方案 报错信息 java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.contextLoads 解决方案 认真查看Caused By信息,即可解决问题。 ...
spring Boot上传文件报错
spring Boot上传文件报错 spring Boot版本 1.5.6 报错原因: org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is java.io.IOException: The temporary uplo...
Spring Boot 之 报错记录
报错信息 org.xml.sax.SAXParseException: 对实体 "tag" 的引用必须以 ';' 分隔符结尾。 重现步骤 a class="nav-link" th:href="/blogs?order=hot&tag=2">hota> 错误原因 Themleaf 是xml模板不能输入 & 符号 应该用 &代替 HTML的 &lt
spring boot访问报错
spring boot启动时报错,信息如下 This application has no explicit mapping for /error, so you are seeing this as a fallback. Mon Jul 06 21:57:13 CST 2017 There was an unexpected error (type=Not Found, status
SPRING BOOT 测试类报错
刚刚接触springboot,对于单元测试的写法不习惯,一开始就被卡主了。自己新建了一个测试类和测试方法,报错。写法就抄袭原先默认的测试类的方法。默认的测试类如下图,可以正常测试。 上图是系统自动生成的,没有问题。但是我自己新建了一个测试类,这样写就运行报错,如图;   解决办法: 在 @SpringBootTest注解中,增加(classes=SellApplicatio...
Spring Boot 报错分析
com.mongodb.MongoSocketOpenException: Exception opening socket at com.mongodb.connection.SocketStream.open(SocketStream.java:63) ~[mongodb-driver-core-3.4.3.jar:na] at com.mongodb.connection.Interna
spring boot拾遗:启动
springboot应用有多种启动方式 a.如果是在代码编写阶段可以以mvn spring-boot:run启动 b.经过编译后得到的jar文件可以以 java -jar *.jar的方式启动 c.可以通过运行相应的[appname]Application中main函数的方式启动 这里需要注意 springboot应用想要以jar文件的方式直接启动 还需要在maven的pom编译打包进行配
Spring Boot启动过程分析
1、Spring Boot 入口——main方法 @SpringBootApplication public class Application { public static void main(String[] args) throws Exception { SpringApplication.run(Application.class, args); }...
spring boot打包启动
此处只介绍,打成jar进行部署: 1:注意最下面的build这块一定要配置否则打jar的时候会说找不 到主类: 2:打jar包 3:运行jar包  :java -jar xxx.jar 4:像本地启动访问链接即可: 5:over...
再谈Spring Boot的启动
之前在这篇博客https://blog.csdn.net/Dongguabai/article/details/80865599中已经分析过了一部分,今天又发现了一个与Spring Boot启动相关的好玩的东东。 比如一般Spring Boot启动main()方法如下: 可以发现这里new了一个SpringApplication,再往下看: 这里为一个很重要的属性main...
spring boot 启动问题
日狗了,创建了一个最简单的spring boot 项目,但是为什么没有启动啊!!!!! 点击: public static void main(String[] args) { SpringApplication.run(DemoApplication.class, args); } 输出: . ____ _ __ ...
Spring Boot 启动原理
-
spring boot的启动问题
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springApplicationAdminRegistrar' defined in class path resource [org/springframework/boot/autoconfigure/admin/SpringApplicationAdminJmxAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.management.InstanceAlreadyExistsException: org.springframework.boot:type=Admin,name=SpringApplicationrn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:776) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861) ~[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541) ~[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]rn at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]rn at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]rn at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:369) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]rn at org.springframework.boot.SpringApplication.run(SpringApplication.java:313) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]rn at org.springframework.boot.SpringApplication.run(SpringApplication.java:1185) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]rn at org.springframework.boot.SpringApplication.run(SpringApplication.java:1174) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]rn at com.liyi.LiyiApplication.main(LiyiApplication.java:20) [classes/:na]rnCaused by: javax.management.InstanceAlreadyExistsException: org.springframework.boot:type=Admin,name=SpringApplicationrn at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437) ~[na:1.8.0_66]rn at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898) ~[na:1.8.0_66]rn at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966) ~[na:1.8.0_66]rn at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900) ~[na:1.8.0_66]rn at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324) ~[na:1.8.0_66]rn at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522) ~[na:1.8.0_66]rn at org.springframework.boot.admin.SpringApplicationAdminMXBeanRegistrar.afterPropertiesSet(SpringApplicationAdminMXBeanRegistrar.java:92) ~[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]rn ... 16 common frames omittedrn
Spring Boot 启动不了
An attempt was made to call the method org.apache.coyote.AbstractProtocol.setAcceptCount(I)V but it does not exist. Its class, org.apache.coyote.AbstractProtocol, is available from the following locat...
Spring Boot项目构建与启动
Spring Boot框架是现在比较热门的java web框架,很多软件公司都在使用。具有简洁、高效的特点。本套课程以实战为主,以问题场景为导向,代码实例讲解了Spring Boot用于Web开发的常用的基本规则。学完该套课程后,可以很快上手Spring Boot实战开发。
spring boot 启动出错
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.2018-07-15 15:30:33.555 ERROR 2616 --- [           main] o.s.b.d.LoggingFailure...
Spring Boot 启动源码分析
spring boot 项目都有个启动类,如下:@SpringBootApplication public class DemoApplication{ public static void main(String[] args) { SpringApplication.run(DemoApplication.class, args); } }写在前面:自动配置的类...
spring boot启动流程图
本文是自己在学习网上关于spring boot 启动源码研究的总结 return new SpringApplication(primarySources).run(args); 主要分两步 第一步new 一个 SpringApplication 应用,第二步 运行SpringApplication 对象 第二步 运行 springboot 应用 总图 ...
Spring Boot 启动与配置
SpringBoot启动与配置 知识点 使用java -java命令启动jar包或者使用传统的war包启动方式,同时spring提供了可以执行spring scripts命令的命令行工具。 系统要求,Spring Boot 2.1.3 工具 版本 Maven 3.3 + Gradle 4.4 + JDK 8 + Spring Framework 5.1.5 ...
Spring boot 启动原理
前言 使用过springboot的同学应该已经知道,springboot通过默认配置了很多框架的使用方式帮我们大大简化了项目初始搭建以及开发过程。本文的目的就是一步步分析springboot的启动过程,分析springboot是如何帮我们简化这个过程的。 springboot帮我们做了什么 通常搭建一个基于spring的web应用,我们需要做以下工作: 1、pom文件中引入相关jar包,包...
spring boot启动参数
前两天入职了新的公司,用的spring boot框架,启动项目时候报错前两天入职了新的公司,用的spring boot框架,启动项目时候报错如下图所示: 后来了解到,由于大多项目都要区分测试环境和生产环境,所以会有dev和prod等配置文件,像这样: 正常的application.properties文件里,应该有spring.profiles.active这个配置这个配置,指定项目启...
Spring Boot 启动 参数设置
(1)读取优先顺序 a - 命令行参数 --key=value 引用 $ mvn spring-boot:run -Drun.arguments="--server.port=9090,--server.context-path=/test" $ java -jar target/xxx.jar --server.port=9090 --server.context-path=/tes...
Spring boot 启动错误处理
今天准备把我之前搭建的,基于springboot的框架的基础功能包抽离出来,在增加spring yml自定义设置后,在业务项目启动时会报出以下异常。2017-02-23 18:55:09.869 WARN main org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext[refr
spring boot 启动详解
spring boot 1.3.2.RELEASE jdk 1.8 启动类 @SpringBootApplication public class FireflyApplication { public static void main(String[] args) { SpringApplication.run(FireflyA...
spring boot 配置和启动
基于 maven框架下的spring boot 配置1.pom.xml 声明资源 <!-- Inherit defaults from Spring Boot --> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</arti
spring boot启动
spring boot使用的时候待解决的问题,其中事件驱动确实是值得深度源码
spring boot 启动原理
https://blog.csdn.net/hengyunabc/article/details/50120001
相关热词 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池 c#5.0 安装程序 c# 分页算法