当前位置:网站首页>关于eureka启动成功但是访问404问题
关于eureka启动成功但是访问404问题
2022-06-21 20:32:00 【律二萌萌哒】
Eureka server yml配置文件
server:
port: 10087 #服务端口
spring:
application:
name: eureka-server #微服务名称
eureka:
client:
service-url:
defaultZone: http://localhost:10087/eureka
fetch-registry: false #关闭检索服务
Eureka启动类
package cn.itcast;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
@SpringBootApplication
@EnableEurekaServer
public class EurekaApplication {
public static void main(String[] args) {
SpringApplication.run(EurekaApplication.class,args);
}
}
启动成功

注意:这里访问Eureka地址是
http://localhost:10087而不是http://localhost:10087/eureka/,把/eureka/去掉即可
成功访问

边栏推荐
- 博图仿真HMI与真实1200PLC通讯失败
- Hiclotter|hic data visualization tool
- opencvsharp阈值分割threshold函数的ThresholdTypes
- Specificity and application of Worthington Papain
- 分别利用for、while、do while,循环求1-100的和
- Mafft|multi sequence alignment tool
- 线粒体基因组常见缩写与术语
- TRNA analysis using trnascan se
- Using streamapi assertion combination and local cache for fuzzy query (nearly 1000 times more efficient than MySQL)
- GDB debugging practice (7) signal processing
猜你喜欢

浅学Vector---如何使用常见的接口
![I2C [2] - why does IIC need to use open drain output and pull-up resistor bug](/img/8d/e72c640b697a8fe9768f6bdbf137ca.png)
I2C [2] - why does IIC need to use open drain output and pull-up resistor bug

Hiclotter|hic data visualization tool

Shanghai Xiangwei electromechanical Co., Ltd., a state-owned enterprise, has reached strategic cooperation with China and foreign countries and donated 200million yuan

刷题笔记(十六)--二叉树:修改与构造

2022 Foshan Tanzhou ceramics exhibition held a press conference to launch ten key points of the exhibition

秒懂微服务

TRNA analysis using trnascan se

Using streamapi assertion combination and local cache for fuzzy query (nearly 1000 times more efficient than MySQL)

dotter|打点法进行序列两两比较软件
随机推荐
HiCPlotter|HiC数据可视化工具
Use the do while loop to calculate the odd and even sums in 1-100 [method 1]
Background and specificity of Worthington elastase
University of Virginia: ingy Elsayed aly | logic based reward formation in Multi-Agent Reinforcement Learning
【深入理解TcaplusDB技术】如何实现Tmonitor单机安装
Luogu p1378 oil drop expansion problem solution
基于OpenCVSharp的001新建工程项目
C# AboutBox怎么显示自己定义的界面
How to uninstall a package installed with the CONDA command
What are the conditions for MySQL to create tables
What is the execution order of JS asynchronism
Beyond their peers, how do ordinary girls learn self-taught self-Media video clips after work?
利用for循环,分别计算1-100中奇数的和、偶数的和【方法一】
分别利用for、while、do while,循环求1-100的和
pi4j针脚模拟总线,进行控制传输和数据传输的几种思路
C#的DataGridView中字体大小
力扣:零钱兑换
Yi Li, head of Alibaba cloud container service: how does cloud origin solve the problem of reducing costs and improving efficiency?
利用tRNAscan-SE做tRNA分析
洛谷P5440 【XR-2】奇迹 题解