class="java" name="code">server: port: 8761 eureka: instance: hostname: localhost client: registerWithEureka: false fetchRegistry: false serviceUrl: defaultZone: http://${euraka.instance.hostname}:${server.port}/eureka/?4.启动项目,在浏览器中输入地址:http://localhost:8761 创建成功