我使用jhipster注册表生成了单体应用,如何关闭注册表?我可以在DEV配置文件中启动应用程序,但在PROD配置文件中会出现以下错误导致崩溃:
java.lang.IllegalStateException: 无法定位PropertySource并且失败快速属性已设置,正在失败。位于org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.locate(ConfigServicePropertySourceLocator.java:132) org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:93) org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:567) org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:338) org.springframework.boot.SpringApplication.run(SpringApplication.java:301) com.qitsoftware.arch3d.Arch3DApp.main(Arch3DApp.java:68)
Caused by: org.springframework.web.client.ResourceAccessException: GET请求"http://localhost:8761 /config/Arch3D/prod/master"时发生I/O错误:拒绝连接( 拒绝连接);嵌套异常是java.net.ConnectException:拒绝连接(拒绝连接) 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