mirror of
https://gitee.com/yudaocode/SpringBoot-Labs.git
synced 2026-09-03 05:53:54 +08:00
nacos 多配置集
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
server:
|
||||
port: 8079
|
||||
|
||||
management:
|
||||
server:
|
||||
port: 8078 # 自定义端口,避免 Nginx 暴露出去
|
||||
|
||||
endpoint:
|
||||
health:
|
||||
show-details: always # 配置展示明细,这样自定义的 ServerHealthIndicator 才可以被访问
|
||||
|
||||
web:
|
||||
exposure:
|
||||
include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
server:
|
||||
port: 8079
|
||||
|
||||
management:
|
||||
server:
|
||||
port: 8078 # 自定义端口,避免 Nginx 暴露出去
|
||||
|
||||
endpoint:
|
||||
health:
|
||||
show-details: always # 配置展示明细,这样自定义的 ServerHealthIndicator 才可以被访问
|
||||
|
||||
web:
|
||||
exposure:
|
||||
include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
server:
|
||||
port: 8079
|
||||
|
||||
management:
|
||||
server:
|
||||
port: 8078 # 自定义端口,避免 Nginx 暴露出去
|
||||
|
||||
endpoint:
|
||||
health:
|
||||
show-details: always # 配置展示明细,这样自定义的 ServerHealthIndicator 才可以被访问
|
||||
|
||||
web:
|
||||
exposure:
|
||||
include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
server:
|
||||
port: 8079
|
||||
|
||||
management:
|
||||
server:
|
||||
port: 8078 # 自定义端口,避免 Nginx 暴露出去
|
||||
|
||||
endpoint:
|
||||
health:
|
||||
show-details: always # 配置展示明细,这样自定义的 ServerHealthIndicator 才可以被访问
|
||||
|
||||
web:
|
||||
exposure:
|
||||
include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
application-test: hahaha
|
||||
@@ -10,7 +10,6 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RequestMapping("/demo")
|
||||
public class DemoController {
|
||||
|
||||
|
||||
@Autowired
|
||||
private Environment environment;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user