liding
2025-05-06 53f9cc8c67ace9018e0481342b7f7d32fe0074c1
src/main/resources/application-druid.yml
@@ -8,7 +8,7 @@
            master:
                url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
                username: root
                password: password
                password: 123456
            # 从库数据源
            slave:
                # 从数据源开关/默认关闭
@@ -24,6 +24,10 @@
            maxActive: 20
            # 配置获取连接等待超时的时间
            maxWait: 60000
            # 配置连接超时时间
            connectTimeout: 30000
            # 配置网络超时时间
            socketTimeout: 60000
            # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
            timeBetweenEvictionRunsMillis: 60000
            # 配置一个连接在池中最小生存的时间,单位是毫秒