springcloud配置中心客户端启动问题

更新时间:2023-06-22 22:06:02 阅读:15 评论:0

springcloud配置中⼼客户端启动问题
先启动了配置中⼼,然后启动客户端,发现打印的⽇志是这样的:
带有酒的诗句2020-04-29 11:13:02.333  INFO 1856 --- [          main] ConfigServicePropertySourceLocator : Fetching config from rver at : localhost:9009/
儿童牙疼怎么办>网络错误651
2020-04-29 11:13:08.121  INFO 1856 --- [          main] ConfigServicePropertySourceLocator : Located environment: name=test-config, profiles=[dev], label= 2020-04-29 11:13:08.122  INFO 1856 --- [          main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name='b 2020-04-29 11:13:08.127  INFO 1856 --- [          main] ConfigCloudClientApplication      : The following profiles are active: dev
2020-04-29 11:13:08.408  INFO 1856 --- [          main] o.t.scope.GenericScope    : BeanFactory id=3bad3006-6836-326e-9ae4-7b60b788ec28 2020-04-29 11:13:08.720  INFO 1856 --- [          main] ConfigCloudClientApplication      : Started ConfigCloudClientApplication in 7.436 conds (JVM runn
从⽇志上看,已经获取到了配置中⼼的配置,但是呢,总感觉⽇志不对,怎么就没有启动的端⼝呢。
性感臀
springcloud经常会⼀个模块包含另外模块,难道web模块没有被 spring-cloud-starter-config 包含?
那就加⼊web模块吧!
<dependency>奶头痒怎么回事
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
加⼊之后再启动项⽬
2020-04-29 11:20:35.379  INFO 10060 --- [          main] ConfigServicePropertySourceLocator : Fetching config from rver at : localhost:9009/
茄盒做法2020-04-29 11:20:36.849  INFO 10060 --- [          main] ConfigServicePropertySourceLocator : Located environment: name=test-config, profiles=[dev], labe 2020-04-29 11:20:36.850  INFO 10060 --- [          main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPro
鹿血酒的功效pertySource {name= 2020-04-29 11:20:36.855  INFO 10060 --- [          main] ConfigCloudClientApplication      : The following profiles are active: dev
2020-04-29 11:20:37.278  INFO 10060 --- [          main] o.t.scope.GenericScope    : BeanFactory id=21eb9db3-9e16-3c20-bd81-2c0ea23b0f12 2020-04-29 11:20:37.566  INFO 10060 --- [          main] o.s.at.TomcatWebServer  : Tomcat initialized with port(s): 8201 (http)
2020-04-29 11:20:37.574  INFO 10060 --- [          main] o.StandardService  : Starting rvice [Tomcat]
2020-04-29 11:20:37.574  INFO 10060 --- [          main] org.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.33]
2020-04-29 11:20:37.684  INFO 10060 --- [          main] C.[Tomcat].[localhost].[/]      : Initializing Spring embedded WebApplicationContext
2020-04-29 11:20:37.684  INFO 10060 --- [          main] o.t.ContextLoader            : Root WebApplicationContext: initialization completed in 817 ms 2020-04-29 11:20:37.851  INFO 10060 ---
[          main] o.urrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
2020-04-29 11:20:38.200  INFO 10060 --- [          main] o.s.at.TomcatWebServer  : Tomcat started on port(s): 8201 (http) with context path ' 2020-04-29 11:20:38.285  INFO 10060 --- [          main] ConfigCloudClientApplication      : Started ConfigCloudClientApplication in 3.87 conds (JVM runn
香菇青菜的做法果然,从配置中⼼拉取到了配置并成功启动了。

本文发布于:2023-06-22 22:06:02,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/89/1050418.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:配置   启动   模块   做法   客户端   网络   牙疼   诗句
相关文章
留言与评论(共有 0 条评论)
昵称:
匿名发表 登录账号
         
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图