mirror of
				https://github.com/YunaiV/ruoyi-vue-pro.git
				synced 2025-10-31 02:28:03 +08:00 
			
		
		
		
	| @ -38,8 +38,8 @@ services: | |||||||
|         volumes: |         volumes: | ||||||
|             - postgres:/var/lib/postgresql/data |             - postgres:/var/lib/postgresql/data | ||||||
|             # 注入初始化脚本 |             # 注入初始化脚本 | ||||||
|             - ./postgresql/quartz.sql:/docker-entrypoint-initdb.d/quartz.sql:ro |             - ../postgresql/quartz.sql:/docker-entrypoint-initdb.d/quartz.sql:ro | ||||||
|             - ./postgresql/ruoyi-vue-pro.sql:/docker-entrypoint-initdb.d/ruoyi-vue-pro.sql:ro |             - ../postgresql/ruoyi-vue-pro.sql:/docker-entrypoint-initdb.d/ruoyi-vue-pro.sql:ro | ||||||
| 
 | 
 | ||||||
|     oracle: |     oracle: | ||||||
|         image: gvenzl/oracle-xe:18-slim-faststart |         image: gvenzl/oracle-xe:18-slim-faststart | ||||||
| @ -49,10 +49,10 @@ services: | |||||||
|         ports: |         ports: | ||||||
|             - "1521:1521" |             - "1521:1521" | ||||||
|         volumes: |         volumes: | ||||||
|             - ./oracle/ruoyi-vue-pro.sql:/tmp/schema.sql:ro |             - ../oracle/ruoyi-vue-pro.sql:/tmp/schema.sql:ro | ||||||
|             # 创建app用户: ROOT/123456@//localhost/XEPDB1 |             # 创建app用户: ROOT/123456@//localhost/XEPDB1 | ||||||
|             - ./_docker/oracle/1_create_user.sql:/docker-entrypoint-initdb.d/1_create_user.sql:ro |             - ./oracle/1_create_user.sql:/docker-entrypoint-initdb.d/1_create_user.sql:ro | ||||||
|             - ./_docker/oracle/2_create_schema.sh:/docker-entrypoint-initdb.d/2_create_schema.sh:ro |             - ./oracle/2_create_schema.sh:/docker-entrypoint-initdb.d/2_create_schema.sh:ro | ||||||
| 
 | 
 | ||||||
|     sqlserver: |     sqlserver: | ||||||
|         image: mcr.microsoft.com/mssql/server:2017-latest |         image: mcr.microsoft.com/mssql/server:2017-latest | ||||||
| @ -65,6 +65,6 @@ services: | |||||||
|             - "1433:1433" |             - "1433:1433" | ||||||
|         volumes: |         volumes: | ||||||
|             - sqlserver:/var/opt/mssql |             - sqlserver:/var/opt/mssql | ||||||
|             - ./sqlserver/ruoyi-vue-pro.sql:/tmp/schema.sql:ro |             - ../sqlserver/ruoyi-vue-pro.sql:/tmp/schema.sql:ro | ||||||
|             # docker compose exec sqlserver bash /tmp/create_schema.sh |             # docker compose exec sqlserver bash /tmp/create_schema.sh | ||||||
|             - ./_docker/sqlserver/create_schema.sh:/tmp/create_schema.sh:ro |             - ./sqlserver/create_schema.sh:/tmp/create_schema.sh:ro | ||||||
| @ -1,5 +1,3 @@ | |||||||
| ALTER SESSION SET CONTAINER=XEPDB1; | ALTER SESSION SET CONTAINER=XEPDB1; | ||||||
| 
 |  | ||||||
| CREATE USER ROOT IDENTIFIED BY 123456 QUOTA UNLIMITED ON USERS; | CREATE USER ROOT IDENTIFIED BY 123456 QUOTA UNLIMITED ON USERS; | ||||||
| 
 |  | ||||||
| GRANT CONNECT, RESOURCE TO ROOT; | GRANT CONNECT, RESOURCE TO ROOT; | ||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -20,7 +20,7 @@ import java.util.Set; | |||||||
|  * @author 芋道源码 |  * @author 芋道源码 | ||||||
|  */ |  */ | ||||||
| @TableName(value = "system_users", autoResultMap = true) // 由于 SQL Server 的 system_user 是关键字,所以使用 system_users | @TableName(value = "system_users", autoResultMap = true) // 由于 SQL Server 的 system_user 是关键字,所以使用 system_users | ||||||
| @KeySequence("system_user_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。 | @KeySequence("system_users_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。 | ||||||
| @Data | @Data | ||||||
| @EqualsAndHashCode(callSuper = true) | @EqualsAndHashCode(callSuper = true) | ||||||
| @Builder | @Builder | ||||||
|  | |||||||
| @ -46,10 +46,10 @@ spring: | |||||||
|       primary: master |       primary: master | ||||||
|       datasource: |       datasource: | ||||||
|         master: |         master: | ||||||
| #          url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true # MySQL Connector/J 8.X 连接的示例 |           url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true # MySQL Connector/J 8.X 连接的示例 | ||||||
| #          url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT # MySQL Connector/J 5.X 连接的示例 | #          url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT # MySQL Connector/J 5.X 连接的示例 | ||||||
|           url: jdbc:postgresql://127.0.0.1:5432/ruoyi-vue-pro?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true # PostgreSQL 连接的示例 | #          url: jdbc:postgresql://127.0.0.1:5432/ruoyi-vue-pro?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true # PostgreSQL 连接的示例 | ||||||
| #          url: jdbc:oracle:thin:@127.0.0.1:1521:XEPDB1 # Oracle 连接的示例 | #          url: jdbc:oracle:thin:@//127.0.0.1:1521/XEPDB1 # Oracle 连接的示例 | ||||||
| #          url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=ruoyi-vue-pro # SQLServer 连接的示例 | #          url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=ruoyi-vue-pro # SQLServer 连接的示例 | ||||||
| #          url: jdbc:dm://10.211.55.4:5236?schema=RUOYI_VUE_PRO # DM 连接的示例 | #          url: jdbc:dm://10.211.55.4:5236?schema=RUOYI_VUE_PRO # DM 连接的示例 | ||||||
|           username: root |           username: root | ||||||
| @ -62,9 +62,10 @@ spring: | |||||||
|           lazy: true # 开启懒加载,保证启动速度 |           lazy: true # 开启懒加载,保证启动速度 | ||||||
| #          url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true # MySQL Connector/J 8.X 连接的示例 | #          url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true # MySQL Connector/J 8.X 连接的示例 | ||||||
| #          url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT # MySQL Connector/J 5.X 连接的示例 | #          url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT # MySQL Connector/J 5.X 连接的示例 | ||||||
| #          url: jdbc:postgresql://127.0.0.1:5432/ruoyi-vue-pro # PostgreSQL 连接的示例 | #          url: jdbc:postgresql://127.0.0.1:5432/ruoyi-vue-pro?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true # PostgreSQL 连接的示例 | ||||||
| #          url: jdbc:oracle:thin:@127.0.0.1:1521:XEPDB1 # Oracle 连接的示例 | #          url: jdbc:oracle:thin:@//127.0.0.1:1521/XEPDB1 # Oracle 连接的示例 | ||||||
| #          url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=ruoyi-vue-pro # SQLServer 连接的示例 | #          url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=ruoyi-vue-pro # SQLServer 连接的示例 | ||||||
|  | #          url: jdbc:dm://10.211.55.4:5236?schema=RUOYI_VUE_PRO # DM 连接的示例 | ||||||
|           username: root |           username: root | ||||||
|           password: 123456 |           password: 123456 | ||||||
|          # username: sa       # SQLServer 连接的示例 |          # username: sa       # SQLServer 连接的示例 | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 芋道源码
					芋道源码