Pu Zhibing
2025-08-06 fd74ab1958c336d1087037c516dfa3e8b8d3d61e
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
server:
    port: 9200
    tomcat:
        basedir: /data/tomcat
# Spring
spring:
    application:
        # 应用名称
        name: ruoyi-system
    main:
        allow-bean-definition-overriding: true
        allow-circular-references: true
    profiles:
        # 环境配置
#        active: dev
        active: prod
mybatis-plus:
    mapper-locations: classpath:mapping/system/*.xml
 
# 视频直播推流地址(流媒体服务器)
live:
    flv:
        ip: 192.168.110.169
        rtmp-port: 1935
        http-port: 80
    hls:
        ip: 192.168.110.169
        port: 80
        output-path: F:\nginx 1.7.11.3 Gryphon\html\
 
 
---
spring:
    config:
        activate:
            on-profile: dev
    cloud:
        nacos:
            discovery:
                # 服务注册地址
                server-addr: 192.168.110.169:8848
                service: ${spring.application.name}
                group: DEFAULT_GROUP
                namespace: 2ce4591c-ed30-4ea8-a271-6014854cd534
                username: nacos
                password: nacos
            config:
                # 配置中心地址
                server-addr: 192.168.110.169:8848
                namespace: 2ce4591c-ed30-4ea8-a271-6014854cd534
                group: DEFAULT_GROUP
                name: ${spring.application.name}
                username: nacos
                password: nacos
                # 配置文件格式
                file-extension: yml
                # 共享配置
                shared-configs:
                    - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
 
---
spring:
    config:
        activate:
            on-profile: prod
    cloud:
        nacos:
            discovery:
                # 服务注册地址
                server-addr: 127.0.0.1:8848
                service: ${spring.application.name}
                group: DEFAULT_GROUP
                namespace: 80fe0aae-8657-48b0-a9bc-95405f5dacdc
                username: nacos
                password: nacos
            config:
                # 配置中心地址
                server-addr: 127.0.0.1:8848
                namespace: 80fe0aae-8657-48b0-a9bc-95405f5dacdc
                username: nacos
                password: nacos
                group: DEFAULT_GROUP
                name: ${spring.application.name}
                # 配置文件格式
                file-extension: yml
                # 共享配置
                shared-configs:
                    - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
---
spring:
    config:
        activate:
            on-profile: test
    cloud:
        nacos:
            discovery:
                # 服务注册地址
                server-addr: 127.0.0.1:8848
                service: ${spring.application.name}
                group: DEFAULT_GROUP
                namespace: 96712c7a-480b-4f40-b783-39f00f3b33ce
            config:
                # 配置中心地址
                server-addr: 127.0.0.1:8848
                namespace: 96712c7a-480b-4f40-b783-39f00f3b33ce
                group: DEFAULT_GROUP
                name: ${spring.application.name}
                # 配置文件格式
                file-extension: yml
                # 共享配置
                shared-configs:
                    - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}