33 lines
		
	
	
		
			758 B
		
	
	
	
		
			YAML
		
	
	
	
		
		
			
		
	
	
			33 lines
		
	
	
		
			758 B
		
	
	
	
		
			YAML
		
	
	
	
| 
								 | 
							
								# Tomcat
							 | 
						||
| 
								 | 
							
								server:
							 | 
						||
| 
								 | 
							
								  port: 18082
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# Spring
							 | 
						||
| 
								 | 
							
								spring: 
							 | 
						||
| 
								 | 
							
								  application:
							 | 
						||
| 
								 | 
							
								    # 应用名称
							 | 
						||
| 
								 | 
							
								    name: bonus-system
							 | 
						||
| 
								 | 
							
								  profiles:
							 | 
						||
| 
								 | 
							
								    # 环境配置
							 | 
						||
| 
								 | 
							
								    active: dev
							 | 
						||
| 
								 | 
							
								  cloud:
							 | 
						||
| 
								 | 
							
								    nacos:
							 | 
						||
| 
								 | 
							
								      username: nacos
							 | 
						||
| 
								 | 
							
								      password: nacos
							 | 
						||
| 
								 | 
							
								      discovery:
							 | 
						||
| 
								 | 
							
								        # 服务注册地址
							 | 
						||
| 
								 | 
							
								        server-addr: 192.168.0.16:18848
							 | 
						||
| 
								 | 
							
								        namespace: 0498f4fe-8430-4d43-acfe-f0cdf9a91df4
							 | 
						||
| 
								 | 
							
								      config:
							 | 
						||
| 
								 | 
							
								        # 配置中心地址
							 | 
						||
| 
								 | 
							
								        server-addr: 192.168.0.16:18848
							 | 
						||
| 
								 | 
							
								        namespace: 0498f4fe-8430-4d43-acfe-f0cdf9a91df4
							 | 
						||
| 
								 | 
							
								        # 配置文件格式
							 | 
						||
| 
								 | 
							
								        file-extension: yml
							 | 
						||
| 
								 | 
							
								        # 共享配置
							 | 
						||
| 
								 | 
							
								        shared-configs:
							 | 
						||
| 
								 | 
							
								          - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
							 | 
						||
| 
								 | 
							
								system:
							 | 
						||
| 
								 | 
							
								  supports:
							 | 
						||
| 
								 | 
							
								    phoneLogin: true
							 | 
						||
| 
								 | 
							
								    emailLogin: true
							 |