spring cloud创建服务错误

今天看spring cloud教程,使用开发工具是eclipse、maven、jdk1.7
目录结构是图片说明
主函数是:

**@EnableEurekaServer //开启eureka服务
@SpringBootApplication //springBoot注解,spring在springBoot基础之上来构建项目
public class Application {

//spirng boot的标准入口
public static void main(String[] args) {
    SpringApplication.run(Application.class, args);
}

}**
配置文件是
server:
port: 8080

eureka:
instance:
hostname: localhost
client:
registerWithEureka: false
fetchRegistry: false
serviceUrl:
defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/
但是运行程序出现com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server异常错误。。不知哪位大神碰到 过。 spring cloud小白求教

是不是你appication.yml文件名称错误了?