当前位置:网站首页>Eureka Client启动后就关闭 Unregistering application xxx with eureka with status DOWN
Eureka Client启动后就关闭 Unregistering application xxx with eureka with status DOWN
2022-07-06 15:59:00 【杰肥啊】
SpringBoot项目在启动之后,无任何报错的情况下,停止了项目。
2018-07-15 10:50:10.523 WARN 16952 — [ Thread-23] com.netflix.discovery.DiscoveryClient : Saw local status change event StatusChangeEvent [timestamp=1531623010523, current=DOWN, previous=UP]
2018-07-15 10:50:10.524 INFO 16952 — [ Thread-23] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 0
2018-07-15 10:50:10.526 INFO 16952 — [ Thread-23] com.netflix.discovery.DiscoveryClient : Shutting down DiscoveryClient …
解决办法
1.查看是否有spring-web依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
2.查看SpringCloud和SpringBoot版本是否对应上(一般没事)
3.端口被占用
第三种情况很难被发现,但是建议大家尝试去看看是不是存在。尤其是一开始好好的,突然过了一段时间运行就不行的情况。接下来我用window系统来讲解大致讲解以下
第一步
首先要知道自己启动的那个SpringBoot项目的访问端口号是哪个,我们假设比如是
8080。第二步
其次,因为当前项目已经停止,也就是说8080按理说不应该被人使用。所以使用以下命令查询一下,打开
命令提示符窗口,window命令如下netstat -ano|findstr "8080"
第三步
最后,打开
任务管理器,找到详细信息这个选项卡,然后把PID排序一下,找到这个占用的程序,直接干掉,然后重启试一下。
边栏推荐
- Koa2 addition, deletion, modification and query of JSON array
- COSCon'22 社区召集令来啦!Open the World,邀请所有社区一起拥抱开源,打开新世界~
- The best sister won the big factory offer of 8 test posts at one go, which made me very proud
- 人均瑞数系列,瑞数 4 代 JS 逆向分析
- B站大佬用我的世界搞出卷積神經網絡,LeCun轉發!爆肝6個月,播放破百萬
- asp读取oracle数据库问题
- koa2对Json数组增删改查
- What can be done for traffic safety?
- Pdf batch splitting, merging, bookmark extraction, bookmark writing gadget
- Use mitmproxy to cache 360 degree panoramic web pages offline
猜你喜欢

(1)长安链学习笔记-启动长安链
Detailed explanation of regular expression (regexp) in MySQL
Example code of MySQL split string as query condition

若依请求url中带有jsessionid的解决办法

Efficient ETL Testing

不要再说微服务可以解决一切问题了

leetcode:236. The nearest common ancestor of binary tree

What can be done for traffic safety?

氢创未来 产业加速 | 2022氢能专精特新创业大赛报名通道开启!

Nftscan Developer Platform launches Pro API commercial services
随机推荐
Automatically update selenium driver chromedriver
Graphite document: four countermeasures to solve the problem of enterprise document information security
One minute to learn how to install the system, win7 XP, win10 and win11 become very simple
Per capita Swiss number series, Swiss number 4 generation JS reverse analysis
GPT-3当一作自己研究自己,已投稿,在线蹲一个同行评议
Modules that can be used by both the electron main process and the rendering process
What does security capability mean? What are the protection capabilities of different levels of ISO?
COSCon'22 社区召集令来啦!Open the World,邀请所有社区一起拥抱开源,打开新世界~
B站大佬用我的世界搞出卷积神经网络,LeCun转发!爆肝6个月,播放破百万
Coscon'22 community convening order is coming! Open the world, invite all communities to embrace open source and open a new world~
前置机是什么意思?主要作用是什么?与堡垒机有什么区别?
Where does this "judge the operation type according to the op value and assemble SQL by yourself" mean? It means simply using Flink tab
js导入excel&导出excel
为了交通安全,可以做些什么?
Nftscan Developer Platform launches Pro API commercial services
Why are some people still poor and living at the bottom of society even though they have been working hard?
Realize colorful lines and shape your heart
Huawei cloud gaussdb (for redis) unveils issue 21: using Gauss redis to achieve secondary indexing
每人每年最高500万经费!选人不选项目,专注基础科研,科学家主导腾讯出资的「新基石」启动申报...
js对JSON数组的增删改查