| 
									
										
										
										
											2025-03-21 14:56:15 +08:00
										 |  |  |  | # Tomcat
 | 
					
						
							|  |  |  |  | server:
 | 
					
						
							| 
									
										
										
										
											2025-08-08 16:22:31 +08:00
										 |  |  |  |   port: 8092
 | 
					
						
							| 
									
										
										
										
											2025-03-21 14:56:15 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | # Spring
 | 
					
						
							|  |  |  |  | spring:
 | 
					
						
							|  |  |  |  |   application:
 | 
					
						
							|  |  |  |  |     # 应用名称
 | 
					
						
							| 
									
										
										
										
											2025-08-08 16:22:31 +08:00
										 |  |  |  |     name: bd-member
 | 
					
						
							| 
									
										
										
										
											2025-03-21 14:56:15 +08:00
										 |  |  |  |   jackson:
 | 
					
						
							|  |  |  |  |     # 返回数据序列化时,如果为 null 则不进行返回
 | 
					
						
							|  |  |  |  |     default-property-inclusion: NON_NULL
 | 
					
						
							|  |  |  |  |   servlet:
 | 
					
						
							|  |  |  |  |     # 文件上传
 | 
					
						
							|  |  |  |  |     multipart:
 | 
					
						
							|  |  |  |  |       # 单个文件大小
 | 
					
						
							| 
									
										
										
										
											2025-08-08 16:22:31 +08:00
										 |  |  |  |       max-file-size: 50MB
 | 
					
						
							| 
									
										
										
										
											2025-03-21 14:56:15 +08:00
										 |  |  |  |       # 设置总上传的文件大小
 | 
					
						
							| 
									
										
										
										
											2025-08-08 16:22:31 +08:00
										 |  |  |  |       max-request-size: 55MB
 | 
					
						
							| 
									
										
										
										
											2025-03-21 14:56:15 +08:00
										 |  |  |  |   profiles:
 | 
					
						
							|  |  |  |  |     # 环境配置
 | 
					
						
							|  |  |  |  |     active: dev
 | 
					
						
							|  |  |  |  |   cloud:
 | 
					
						
							|  |  |  |  |     nacos:
 | 
					
						
							|  |  |  |  |       discovery:
 | 
					
						
							|  |  |  |  |         # 服务注册地址
 | 
					
						
							| 
									
										
										
										
											2025-08-08 16:22:31 +08:00
										 |  |  |  |         server-addr: @config.server-addr@
 | 
					
						
							|  |  |  |  |         username: @config.username@
 | 
					
						
							|  |  |  |  |         password: @config.password@
 | 
					
						
							| 
									
										
										
										
											2025-08-08 17:43:54 +08:00
										 |  |  |  |         namespace: @config.namespace@
 | 
					
						
							| 
									
										
										
										
											2025-03-21 14:56:15 +08:00
										 |  |  |  |       config:
 | 
					
						
							|  |  |  |  |         # 配置中心地址
 | 
					
						
							| 
									
										
										
										
											2025-08-08 16:22:31 +08:00
										 |  |  |  |         server-addr: @config.server-addr@
 | 
					
						
							|  |  |  |  |         username: @config.username@
 | 
					
						
							|  |  |  |  |         password: @config.password@
 | 
					
						
							| 
									
										
										
										
											2025-08-08 17:43:54 +08:00
										 |  |  |  |         namespace: @config.namespace@
 | 
					
						
							| 
									
										
										
										
											2025-03-21 14:56:15 +08:00
										 |  |  |  |         # 配置文件格式
 | 
					
						
							|  |  |  |  |         file-extension: yml
 | 
					
						
							|  |  |  |  |         # 共享配置
 | 
					
						
							|  |  |  |  |         shared-configs:
 | 
					
						
							|  |  |  |  |           - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
 | 
					
						
							|  |  |  |  |           ## 业务模块依赖的公用配置(缓存、数据库、事务、mybatis-plus)
 | 
					
						
							| 
									
										
										
										
											2025-08-08 16:22:31 +08:00
										 |  |  |  |           - business-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
 | 
					
						
							| 
									
										
										
										
											2025-03-21 14:56:15 +08:00
										 |  |  |  |   main:
 | 
					
						
							|  |  |  |  |     ## 当遇到同样名字的时候,是否允许覆盖注册
 | 
					
						
							|  |  |  |  |     allow-bean-definition-overriding: true
 | 
					
						
							|  |  |  |  |     ## true 表示控制台不会打印循环依赖异常
 | 
					
						
							|  |  |  |  |     allow-circular-references: true
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | dubbo:
 | 
					
						
							|  |  |  |  |   registry:
 | 
					
						
							|  |  |  |  |     # 使用spring-cloud注册配置
 | 
					
						
							|  |  |  |  |     address: spring-cloud://localhost
 | 
					
						
							|  |  |  |  |   consumer:
 | 
					
						
							|  |  |  |  |     # 远程服务调用超时时间(毫秒)
 | 
					
						
							|  |  |  |  |     timeout: 10000
 | 
					
						
							|  |  |  |  |     # 重试次数(默认:2)
 | 
					
						
							|  |  |  |  |     retries: 0
 | 
					
						
							|  |  |  |  |     # 启动时不检查dubbo服务是否启动
 | 
					
						
							|  |  |  |  |     check: false
 | 
					
						
							|  |  |  |  |     # 负载策略(random:随机,roundrobin:轮询,leastactive:最少活跃调用)
 | 
					
						
							|  |  |  |  |     loadbalance: "leastactive"
 | 
					
						
							| 
									
										
										
										
											2025-08-08 16:22:31 +08:00
										 |  |  |  |     # 业务线程池大小
 | 
					
						
							|  |  |  |  |     threads: 400
 | 
					
						
							| 
									
										
										
										
											2025-03-21 14:56:15 +08:00
										 |  |  |  |   protocol:
 | 
					
						
							|  |  |  |  |     # 设置协议为dubbo
 | 
					
						
							|  |  |  |  |     name: dubbo
 | 
					
						
							|  |  |  |  |     # dubbo 协议端口 (-1 表示自增端口,从20880开始)
 | 
					
						
							|  |  |  |  |     port: -1
 | 
					
						
							| 
									
										
										
										
											2025-08-08 16:22:31 +08:00
										 |  |  |  |     # 服务线程池大小
 | 
					
						
							|  |  |  |  |     threads: 400
 | 
					
						
							| 
									
										
										
										
											2025-03-21 14:56:15 +08:00
										 |  |  |  |   cloud:
 | 
					
						
							|  |  |  |  |     # 订阅服务
 | 
					
						
							| 
									
										
										
										
											2025-08-08 16:22:31 +08:00
										 |  |  |  |     subscribed-services: bd-system, bd-third, bd-sale, bd-activity
 | 
					
						
							| 
									
										
										
										
											2025-03-21 14:56:15 +08:00
										 |  |  |  |   scan:
 | 
					
						
							|  |  |  |  |     # dubbo 服务扫描包(开启之后才会对外提供服务)
 | 
					
						
							| 
									
										
										
										
											2025-08-08 16:22:31 +08:00
										 |  |  |  |     base-packages: com.hzs.member
 | 
					
						
							| 
									
										
										
										
											2025-03-21 14:56:15 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | ## AWS配置
 | 
					
						
							|  |  |  |  | aws:
 | 
					
						
							|  |  |  |  |   endpoint: arn:aws:s3:::agl413-test
 | 
					
						
							|  |  |  |  |   accessKey: AKIARHJJNF26Z6XSO5R3
 | 
					
						
							|  |  |  |  |   secretKey: 6X2yXiKnMuqhq7WankIfelZgCDqybcxEQbmPeo9t
 | 
					
						
							|  |  |  |  |   bucketName: agl413-test
 | 
					
						
							|  |  |  |  |   ## 目录前缀
 | 
					
						
							|  |  |  |  |   prefixDirectory: test
 | 
					
						
							|  |  |  |  |   ## 测试访问路径
 | 
					
						
							|  |  |  |  |   filePath: https://agl413-test.s3.af-south-1.amazonaws.com/
 | 
					
						
							|  |  |  |  |   ## 非洲
 | 
					
						
							|  |  |  |  |   region: af-south-1
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | # 日志配置
 | 
					
						
							|  |  |  |  | logging:
 | 
					
						
							|  |  |  |  |   level:
 | 
					
						
							| 
									
										
										
										
											2025-08-08 16:22:31 +08:00
										 |  |  |  |     com.hzs: debug
 | 
					
						
							| 
									
										
										
										
											2025-03-21 14:56:15 +08:00
										 |  |  |  |     org.springframework: warn
 | 
					
						
							| 
									
										
										
										
											2025-08-08 16:22:31 +08:00
										 |  |  |  | 
 |