nacos 多配置集

This commit is contained in:
YunaiV
2020-01-24 11:33:00 +08:00
parent 138012521c
commit ec5a5be8b8
6 changed files with 0 additions and 62 deletions

View File

@@ -1,15 +0,0 @@
server:
port: 8079
management:
server:
port: 8078 # 自定义端口,避免 Nginx 暴露出去
endpoint:
health:
show-details: always # 配置展示明细,这样自定义的 ServerHealthIndicator 才可以被访问
web:
exposure:
include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。

View File

@@ -1,15 +0,0 @@
server:
port: 8079
management:
server:
port: 8078 # 自定义端口,避免 Nginx 暴露出去
endpoint:
health:
show-details: always # 配置展示明细,这样自定义的 ServerHealthIndicator 才可以被访问
web:
exposure:
include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。

View File

@@ -1,15 +0,0 @@
server:
port: 8079
management:
server:
port: 8078 # 自定义端口,避免 Nginx 暴露出去
endpoint:
health:
show-details: always # 配置展示明细,这样自定义的 ServerHealthIndicator 才可以被访问
web:
exposure:
include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。

View File

@@ -1,15 +0,0 @@
server:
port: 8079
management:
server:
port: 8078 # 自定义端口,避免 Nginx 暴露出去
endpoint:
health:
show-details: always # 配置展示明细,这样自定义的 ServerHealthIndicator 才可以被访问
web:
exposure:
include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。

View File

@@ -1 +0,0 @@
application-test: hahaha

View File

@@ -10,7 +10,6 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/demo")
public class DemoController {
@Autowired
private Environment environment;