当前位置:网站首页>关于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/去掉即可
成功访问

边栏推荐
- Self made C compiler
- IP guard printing control to prevent information disclosure of printing channels
- Hiclotter|hic data visualization tool
- Use the for loop to calculate the odd and even sums in 1-100 [method 2]
- GDB调试实战(8)给程序传递启动参数
- Pal2nal| how to run pal2nal from the command line
- Lifting method (I) AdaBoost
- 如何卸载用conda命令安装的包
- 迅为iTOP-3568开发板安装 RKNN Toolkit Lite2
- IQtree|构建进化树的软件
猜你喜欢

B2B mall website helps enterprises speed up distribution and build an efficient and intelligent B2B online distribution platform

【LeetCode】8、字符串转换整数(atoi)

自制C#编译器

HIC Pro | HIC data processing tool

Advanced packaging, the beginning of a big cycle -- a symposium on semiconductor equipment

提升方法(下)提升树

Dotter| dot method sequence pairwise comparison software

使用StreamAPI 断言组合,结合本地缓存做模糊查询(比mysql效率提升近1000倍)

北京 加速生态建设 迈动互联与摩尔线程完成产品兼容互认证

New energy industry commercial procurement collaboration system: enable new energy industry procurement business and enhance industrial collaboration
随机推荐
IP-guard打印管控,防止打印渠道信息泄露
刷题笔记(十六)--二叉树:修改与构造
GDB debugging practice (8) transfer startup parameters to the program
GDB调试实战(10)多线程调试
北京 加速生态建设 迈动互联与摩尔线程完成产品兼容互认证
I2C【1】-I2C驱动调试读操作异常的bug
Luogu p1608 path statistics solution
数商云纸业集团供应商管理系统:推进企业信息化建设,全面提升供应商管理效率
IP guard printing control to prevent information disclosure of printing channels
提升方法(下)提升树
Pal2Nal|如何在命令行下运行Pal2Nal
文件I/O
pi4j针脚模拟总线,进行控制传输和数据传输的几种思路
利用do while循环,分别计算1-100中奇数的和、偶数的和【方法一】
Enzo high sensitivity detection Arg8 vasopressin ELISA Kit
线粒体基因组常见缩写与术语
Instadeep ltd:arthur flajolet | group based rapid reinforcement learning on a single machine
【深入理解TcaplusDB技术】TcaplusDB导入数据
【深入理解TcaplusDB技术】单据受理之表管理
Luogu p1535 [usaco08mar]cow traveling s problem solution