mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	update 优化 默认注释掉slave数据源
This commit is contained in:
		@@ -52,14 +52,14 @@ spring:
 | 
				
			|||||||
          url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
 | 
					          url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
 | 
				
			||||||
          username: root
 | 
					          username: root
 | 
				
			||||||
          password: root
 | 
					          password: root
 | 
				
			||||||
        # 从库数据源
 | 
					#        # 从库数据源
 | 
				
			||||||
        slave:
 | 
					#        slave:
 | 
				
			||||||
          lazy: true
 | 
					#          lazy: true
 | 
				
			||||||
          type: ${spring.datasource.type}
 | 
					#          type: ${spring.datasource.type}
 | 
				
			||||||
          driverClassName: com.mysql.cj.jdbc.Driver
 | 
					#          driverClassName: com.mysql.cj.jdbc.Driver
 | 
				
			||||||
          url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
 | 
					#          url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
 | 
				
			||||||
          username:
 | 
					#          username:
 | 
				
			||||||
          password:
 | 
					#          password:
 | 
				
			||||||
#        oracle:
 | 
					#        oracle:
 | 
				
			||||||
#          type: ${spring.datasource.type}
 | 
					#          type: ${spring.datasource.type}
 | 
				
			||||||
#          driverClassName: oracle.jdbc.OracleDriver
 | 
					#          driverClassName: oracle.jdbc.OracleDriver
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -55,14 +55,14 @@ spring:
 | 
				
			|||||||
          url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
 | 
					          url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
 | 
				
			||||||
          username: root
 | 
					          username: root
 | 
				
			||||||
          password: root
 | 
					          password: root
 | 
				
			||||||
        # 从库数据源
 | 
					#        # 从库数据源
 | 
				
			||||||
        slave:
 | 
					#        slave:
 | 
				
			||||||
          lazy: true
 | 
					#          lazy: true
 | 
				
			||||||
          type: ${spring.datasource.type}
 | 
					#          type: ${spring.datasource.type}
 | 
				
			||||||
          driverClassName: com.mysql.cj.jdbc.Driver
 | 
					#          driverClassName: com.mysql.cj.jdbc.Driver
 | 
				
			||||||
          url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
 | 
					#          url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
 | 
				
			||||||
          username:
 | 
					#          username:
 | 
				
			||||||
          password:
 | 
					#          password:
 | 
				
			||||||
#        oracle:
 | 
					#        oracle:
 | 
				
			||||||
#          type: ${spring.datasource.type}
 | 
					#          type: ${spring.datasource.type}
 | 
				
			||||||
#          driverClassName: oracle.jdbc.OracleDriver
 | 
					#          driverClassName: oracle.jdbc.OracleDriver
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user