mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-03 19:58:42 +08:00 
			
		
		
		
	适配 Oracle 数据库
1. 去除关键字,避免数据库的查询冲突
This commit is contained in:
		@@ -36,7 +36,7 @@ spring:
 | 
			
		||||
        time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒
 | 
			
		||||
        min-evictable-idle-time-millis: 300000 # 配置一个连接在池中最小生存的时间,单位:毫秒
 | 
			
		||||
        max-evictable-idle-time-millis: 900000 # 配置一个连接在池中最大生存的时间,单位:毫秒
 | 
			
		||||
        validation-query: SELECT 1 # 配置检测连接是否有效
 | 
			
		||||
        validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效
 | 
			
		||||
        test-while-idle: true
 | 
			
		||||
        test-on-borrow: false
 | 
			
		||||
        test-on-return: false
 | 
			
		||||
@@ -44,14 +44,16 @@ spring:
 | 
			
		||||
      datasource:
 | 
			
		||||
        master:
 | 
			
		||||
          name: ruoyi-vue-pro
 | 
			
		||||
          url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT # MySQL 连接的示例
 | 
			
		||||
#          url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT # MySQL 连接的示例
 | 
			
		||||
#          url: jdbc:postgresql://127.0.0.1:5432/${spring.datasource.dynamic.datasource.slave.name} # PostgreSQL 连接的示例
 | 
			
		||||
          url: jdbc:oracle:thin:@127.0.0.1:1521:xe # Oracle 连接的示例
 | 
			
		||||
          username: root
 | 
			
		||||
          password: 123456
 | 
			
		||||
        slave: # 模拟从库,可根据自己需要修改
 | 
			
		||||
          name: ruoyi-vue-pro
 | 
			
		||||
          url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.slave.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT # MySQL 连接的示例
 | 
			
		||||
#          url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.slave.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT # MySQL 连接的示例
 | 
			
		||||
#          url: jdbc:postgresql://127.0.0.1:5432/${spring.datasource.dynamic.datasource.slave.name} # PostgreSQL 连接的示例
 | 
			
		||||
          url: jdbc:oracle:thin:@127.0.0.1:1521:xe # Oracle 连接的示例
 | 
			
		||||
          username: root
 | 
			
		||||
          password: 123456
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -117,8 +117,6 @@ yudao:
 | 
			
		||||
      - infra_codegen_column
 | 
			
		||||
      - infra_codegen_table
 | 
			
		||||
      - infra_test_demo
 | 
			
		||||
      - tables
 | 
			
		||||
      - columns
 | 
			
		||||
      - infra_config
 | 
			
		||||
      - infra_file_config
 | 
			
		||||
      - infra_file
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user