13693261870
7 天以前 097c95714ed960ab8e997c26355603bf0448e92b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Tomcat
server:
  port: 8004
 
# Spring
spring: 
  application:
    # 应用名称
    name: se-discover
  profiles:
    # 环境配置
    active: dev
  cloud:
    nacos:
      username: nacos
      password: nAcos_!9#_admIn
      discovery:
        # 服务注册地址
        server-addr: 127.0.0.1:8848
        group: JHS_GROUP
      config:
        group: JHS_GROUP
        # 配置中心地址
        server-addr: 127.0.0.1:8848
        # 配置文件格式
        file-extension: yml
        # 共享配置
        shared-configs:
          - data-id: application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
            group: JHS_GROUP
        # 允许刷新
        refresh-enabled: true