2017-08-16 4 views
0

Ich habe jhipster monolithische Anwendung mit Registrierung generiert. Wie kann ich die Registrierung ausschalten? Ich kann Anwendung in DEV Profil starten, aber es stürzt in PROD Profil mit Fehlern:Wie jhipster Registrierung zu deaktivieren?

java.lang.IllegalStateException: Could not locate PropertySource and the fail fast property is set, failing at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.locate(ConfigServicePropertySourceLocator.java:132) at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:93) at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:567) at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:338) at org.springframework.boot.SpringApplication.run(SpringApplication.java:301) at com.qitsoftware.arch3d.Arch3DApp.main(Arch3DApp.java:68) Caused by: org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://localhost:8761/config/Arch3D/prod/master": Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:666) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:613)at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:531) at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.getRemoteEnvironment(ConfigServicePropertySourceLocator.java:172) at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.locate(ConfigServicePropertySourceLocator.java:93) ... 5 common frames omitted

+0

auf false ausfall schnelle Einstellung Wenn Sie möchten, Um die Registry vollständig zu entfernen, können Sie Ihre App ohne diese neu generieren, indem Sie .yo-rc.json bearbeiten, Änderungen neu generieren und in Ihr git-Repository integrieren. Andernfalls können Sie versuchen, https://stackoverflow.com/questions/35142105/eureka-discovery-client-sective-disable –

Antwort

1

eine Lösung gefunden durch Cloud-Entdeckung zu deaktivieren und in bootstrap-prod.yml

spring: 
    cloud: 
     discovery: 
      enabled: false 
     config: 
      fail-fast: false
Verwandte Themen