2016-12-02 3 views
3

를 표시하지 않는 유레카 서버 응용 프로그램이 있습니다 :봄 유레카 앱 대시 보드

@EnableEurekaServer 
@SpringBootApplication 
public class RegistrationModulesServiceApplication { 

    public static void main(String[] args) { 
     SpringApplication.run(RegistrationModulesServiceApplication.class, args); 
    } 
} 

applicaton.yml 설정으로는 (기본값으로) : 첫 번째 실행에

eureka: 
    instance: 
    hostname: localhost 
    client: 
    registerWithEureka: false 
    fetchRegistry: false 

server: 
    port: 1111 

- 내가 대시 보드를 보았다 상태가 있습니다. 문서에 처럼 : - : enter image description here

enter image description here

그런 다음 다시 시작하면 난 단지 XML 응답을 볼 수 있습니까?

로그에 오류가 없습니다.

답변

0

봄 부팅/클라우드 버전을 사용해보십시오 :

<parent> 
    <groupId>org.springframework.boot</groupId> 
    <artifactId>spring-boot-starter-parent</artifactId> 
    <version>1.5.1.RELEASE</version> 
    <relativePath /> <!-- lookup parent from repository --> 
</parent> 

<dependencyManagement> 
    <dependencies> 
     <dependency> 
      <groupId>org.springframework.cloud</groupId> 
      <artifactId>spring-cloud-dependencies</artifactId> 
      <version>Dalston.BUILD-SNAPSHOT</version> 
      <type>pom</type> 
      <scope>import</scope> 
     </dependency> 
    </dependencies> 
</dependencyManagement> 

을 어쩌면 환경

eureka: 
    environment: dev 

나를 위해 this github project

0

에서 전체 예제는이 설정이 문제였다 나는 그 src/main/resources/templates라는 빈 폴더가 있습니다. 이 폴더가 존재하면 FreeMarkerView는 spring-cloud-netflix-eureka-server에 포함 된 포함 된 템플릿을 볼 수 없습니다. 이 폴더의 원래 위치는 기억이 나지 않지만 온라인 샘플에있는 것으로 의심됩니다.