第二阶段源码
This commit is contained in:
@@ -63,6 +63,13 @@
|
||||
<artifactId>postgresql</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 测试依赖 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
@@ -58,10 +58,10 @@ spring:
|
||||
|
||||
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
|
||||
redis:
|
||||
host: 192.168.5.118 # 地址
|
||||
port: 6379 # 端口
|
||||
database: 1 # 数据库索引
|
||||
# password: 123456 # 密码,建议生产环境开启
|
||||
host: 106.55.147.251 # 地址
|
||||
port: 6380 # 端口
|
||||
database: 10 # 数据库索引
|
||||
password: yudao123456 # 密码,建议生产环境开启
|
||||
|
||||
--- #################### 定时任务相关配置 ####################
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ spring:
|
||||
primary: master
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:postgresql://192.168.5.118:5432/ruoyi-vue-pro # PostgreSQL 连接配置
|
||||
url: jdbc:postgresql://192.168.5.118:5432/postgres # PostgreSQL 连接配置
|
||||
username: postgres
|
||||
password: 123456
|
||||
# username: sa # SQL Server 连接的示例
|
||||
@@ -59,7 +59,7 @@ spring:
|
||||
# password: Yudao@2024 # OpenGauss 连接的示例
|
||||
slave: # 模拟从库,可根据自己需要修改
|
||||
lazy: true # 开启懒加载,保证启动速度
|
||||
url: jdbc:postgresql://192.168.5.118:5432/ruoyi-vue-pro # PostgreSQL 连接配置
|
||||
url: jdbc:postgresql://192.168.5.118:5432/postgres # PostgreSQL 连接配置
|
||||
username: postgres
|
||||
password: 123456
|
||||
# tdengine: # IoT 数据库(需要 IoT 物联网再开启噢!)
|
||||
|
||||
@@ -58,8 +58,8 @@ spring:
|
||||
|
||||
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
|
||||
redis:
|
||||
host: 10.1.12.13 # 地址
|
||||
port: 6379 # 端口
|
||||
host: 106.55.147.251 # 地址
|
||||
port: 6380 # 端口
|
||||
database: 1 # 数据库索引
|
||||
password: yudao123456 # 密码,建议生产环境开启
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ spring:
|
||||
name: yudao-server
|
||||
|
||||
profiles:
|
||||
active: local
|
||||
active: dev
|
||||
|
||||
main:
|
||||
allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
|
||||
|
||||
Reference in New Issue
Block a user