From c39cbd9c5403145bad140aa13237e6ecbf8d8725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=88=E5=A4=9C?= <768242801@qq.com> Date: Thu, 30 Dec 2021 10:26:22 +0000 Subject: [PATCH] =?UTF-8?q?!8=20update=20=E9=87=8D=E6=9E=84=20=E5=B0=86nac?= =?UTF-8?q?os=E9=85=8D=E7=BD=AE=E6=95=B0=E6=8D=AE=E6=8F=90=E5=88=B0?= =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E6=96=87=E4=BB=B6=20=E4=BE=BF=E4=BA=8E?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=92=8C=E8=A7=82=E7=9C=8B=20*=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=20nacos=E9=85=8D=E7=BD=AE=E4=B8=8D=E6=94=AF=E6=8C=81y?= =?UTF-8?q?ml=E5=88=86=E9=9A=94=E7=AC=A6---=E9=97=AE=E9=A2=98=20*=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E5=B0=86nacos=E9=85=8D=E7=BD=AE=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=8F=90=E5=88=B0=E5=9B=BA=E5=AE=9A=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/contentYml/application-dev.yml | 104 +++++++++++++++++++++ sql/contentYml/ruoyi-auth-dev.yml | 1 + sql/contentYml/ruoyi-file-dev.yml | 20 ++++ sql/contentYml/ruoyi-gateway-dev.yml | 67 +++++++++++++ sql/contentYml/ruoyi-gen-dev.yml | 31 ++++++ sql/contentYml/ruoyi-job-dev.yml | 20 ++++ sql/contentYml/ruoyi-monitor-dev.yml | 10 ++ sql/contentYml/ruoyi-system-dev.yml | 79 ++++++++++++++++ sql/contentYml/sentinel-ruoyi-gateway.json | 34 +++++++ sql/ry_config_20211118.sql | 18 ++-- 10 files changed, 375 insertions(+), 9 deletions(-) create mode 100644 sql/contentYml/application-dev.yml create mode 100644 sql/contentYml/ruoyi-auth-dev.yml create mode 100644 sql/contentYml/ruoyi-file-dev.yml create mode 100644 sql/contentYml/ruoyi-gateway-dev.yml create mode 100644 sql/contentYml/ruoyi-gen-dev.yml create mode 100644 sql/contentYml/ruoyi-job-dev.yml create mode 100644 sql/contentYml/ruoyi-monitor-dev.yml create mode 100644 sql/contentYml/ruoyi-system-dev.yml create mode 100644 sql/contentYml/sentinel-ruoyi-gateway.json diff --git a/sql/contentYml/application-dev.yml b/sql/contentYml/application-dev.yml new file mode 100644 index 00000000..aec815c2 --- /dev/null +++ b/sql/contentYml/application-dev.yml @@ -0,0 +1,104 @@ +# 将此内容填入nacos对应的配置内容中 +spring: + main: + allow-bean-definition-overriding: true + autoconfigure: + exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure + + # redis通用配置 子服务可以自行配置进行覆盖 + redis: + host: localhost + port: 6379 + password: + database: 0 + timeout: 10s + ssl: false + + #jackson配置 + jackson: + # 日期格式化 + date-format: yyyy-MM-dd HH:mm:ss + serialization: + # 格式化输出 + INDENT_OUTPUT: false + # 忽略无法转换的对象 + fail_on_empty_beans: false + deserialization: + # 允许对象忽略json中不存在的属性 + fail_on_unknown_properties: false + +# redisson 配置 +redisson: + # 线程池数量 + threads: 16 + # Netty线程池数量 + nettyThreads: 32 + # 传输模式 + transportMode: "NIO" + # 单节点配置 + singleServerConfig: + # 客户端名称 + clientName: ${ruoyi.name} + # 最小空闲连接数 + connectionMinimumIdleSize: 32 + # 连接池大小 + connectionPoolSize: 64 + # 连接空闲超时,单位:毫秒 + idleConnectionTimeout: 10000 + # 命令等待超时,单位:毫秒 + timeout: 3000 + # 如果尝试在此限制之内发送成功,则开始启用 timeout 计时。 + retryAttempts: 3 + # 命令重试发送时间间隔,单位:毫秒 + retryInterval: 1500 + # 发布和订阅连接的最小空闲连接数 + subscriptionConnectionMinimumIdleSize: 1 + # 发布和订阅连接池大小 + subscriptionConnectionPoolSize: 50 + # 单个连接最大订阅数量 + subscriptionsPerConnection: 5 + # DNS监测时间间隔,单位:毫秒 + dnsMonitoringInterval: 5000 + # redisson 缓存配置 + cacheGroup: + # 用例: @Cacheable(cacheNames="groupId", key="#XXX") 方可使用缓存组配置 + - groupId: redissonCacheMap + # 组过期时间(脚本监控) + ttl: 60000 + # 组最大空闲时间(脚本监控) + maxIdleTime: 60000 + # 组最大长度 + maxSize: 0 + +# 分布式锁 lock4j 全局配置 +lock4j: + # 获取分布式锁超时时间,默认为 3000 毫秒 + acquire-timeout: 3000 + # 分布式锁的超时时间,默认为 30 毫秒 + expire: 30000 + +# feign 配置 +feign: + sentinel: + enabled: true + okhttp: + enabled: true + httpclient: + enabled: false + client: + config: + default: + connectTimeout: 10000 + readTimeout: 10000 + compression: + request: + enabled: true + response: + enabled: true + +# 暴露监控端点 +management: + endpoints: + web: + exposure: + include: '*' diff --git a/sql/contentYml/ruoyi-auth-dev.yml b/sql/contentYml/ruoyi-auth-dev.yml new file mode 100644 index 00000000..bcaff680 --- /dev/null +++ b/sql/contentYml/ruoyi-auth-dev.yml @@ -0,0 +1 @@ +# 将此内容填入nacos对应的配置内容中 diff --git a/sql/contentYml/ruoyi-file-dev.yml b/sql/contentYml/ruoyi-file-dev.yml new file mode 100644 index 00000000..8c6ff981 --- /dev/null +++ b/sql/contentYml/ruoyi-file-dev.yml @@ -0,0 +1,20 @@ +# 将此内容填入nacos对应的配置内容中 +# 本地文件上传 +file: + domain: http://127.0.0.1:9300 + path: D:/ruoyi/uploadPath + prefix: /statics + +# FastDFS配置 +fdfs: + domain: http://8.129.231.12 + soTimeout: 3000 + connectTimeout: 2000 + trackerList: 8.129.231.12:22122 + +# Minio配置 +minio: + url: http://8.129.231.12:9000 + accessKey: minioadmin + secretKey: minioadmin + bucketName: test \ No newline at end of file diff --git a/sql/contentYml/ruoyi-gateway-dev.yml b/sql/contentYml/ruoyi-gateway-dev.yml new file mode 100644 index 00000000..f067eb90 --- /dev/null +++ b/sql/contentYml/ruoyi-gateway-dev.yml @@ -0,0 +1,67 @@ +# 将此内容填入nacos对应的配置内容中 +spring: + cloud: + gateway: + discovery: + locator: + lowerCaseServiceId: true + enabled: true + routes: + # 认证中心 + - id: ruoyi-auth + uri: lb://ruoyi-auth + predicates: + - Path=/auth/** + filters: + # 验证码处理 + - CacheRequestFilter + - ValidateCodeFilter + - StripPrefix=1 + # 代码生成 + - id: ruoyi-gen + uri: lb://ruoyi-gen + predicates: + - Path=/code/** + filters: + - StripPrefix=1 + # 定时任务 + - id: ruoyi-job + uri: lb://ruoyi-job + predicates: + - Path=/schedule/** + filters: + - StripPrefix=1 + # 系统模块 + - id: ruoyi-system + uri: lb://ruoyi-system + predicates: + - Path=/system/** + filters: + - StripPrefix=1 + # 文件服务 + - id: ruoyi-file + uri: lb://ruoyi-file + predicates: + - Path=/file/** + filters: + - StripPrefix=1 + +# 安全配置 +security: + # 验证码 + captcha: + enabled: true + type: math + # 防止XSS攻击 + xss: + enabled: true + excludeUrls: + - /system/notice + # 不校验白名单 + ignore: + whites: + - /auth/logout + - /auth/login + - /auth/register + - /*/v2/api-docs + - /csrf diff --git a/sql/contentYml/ruoyi-gen-dev.yml b/sql/contentYml/ruoyi-gen-dev.yml new file mode 100644 index 00000000..5c29ef45 --- /dev/null +++ b/sql/contentYml/ruoyi-gen-dev.yml @@ -0,0 +1,31 @@ +# 将此内容填入nacos对应的配置内容中 +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 + username: root + password: password + +# mybatis配置 +mybatis: + # 搜索指定包别名 + typeAliasesPackage: com.ruoyi.gen.domain + # 配置mapper的扫描,找到所有的mapper.xml映射文件 + mapperLocations: classpath:mapper/**/*.xml + +# swagger配置 +swagger: + title: 代码生成接口文档 + license: Powered By ruoyi + licenseUrl: https://ruoyi.vip + +# 代码生成 +gen: + # 作者 + author: ruoyi + # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool + packageName: com.ruoyi.system + # 自动去除表前缀,默认是false + autoRemovePre: false + # 表前缀(生成类名不会包含表前缀,多个用逗号分隔) + tablePrefix: sys_ diff --git a/sql/contentYml/ruoyi-job-dev.yml b/sql/contentYml/ruoyi-job-dev.yml new file mode 100644 index 00000000..84b51b4b --- /dev/null +++ b/sql/contentYml/ruoyi-job-dev.yml @@ -0,0 +1,20 @@ +# 将此内容填入nacos对应的配置内容中 +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 + username: root + password: password + +# mybatis配置 +mybatis: + # 搜索指定包别名 + typeAliasesPackage: com.ruoyi.job.domain + # 配置mapper的扫描,找到所有的mapper.xml映射文件 + mapperLocations: classpath:mapper/**/*.xml + +# swagger配置 +swagger: + title: 定时任务接口文档 + license: Powered By ruoyi + licenseUrl: https://ruoyi.vip diff --git a/sql/contentYml/ruoyi-monitor-dev.yml b/sql/contentYml/ruoyi-monitor-dev.yml new file mode 100644 index 00000000..a7e590b6 --- /dev/null +++ b/sql/contentYml/ruoyi-monitor-dev.yml @@ -0,0 +1,10 @@ +# 将此内容填入nacos对应的配置内容中 +spring: + security: + user: + name: ruoyi + password: 123456 + boot: + admin: + ui: + title: 若依服务状态监控 \ No newline at end of file diff --git a/sql/contentYml/ruoyi-system-dev.yml b/sql/contentYml/ruoyi-system-dev.yml new file mode 100644 index 00000000..b1023b71 --- /dev/null +++ b/sql/contentYml/ruoyi-system-dev.yml @@ -0,0 +1,79 @@ +# 将此内容填入nacos对应的配置内容中 +spring: + datasource: + druid: + stat-view-servlet: + enabled: true + loginUsername: admin + loginPassword: 123456 + dynamic: + druid: + initial-size: 5 + min-idle: 5 + maxActive: 20 + maxWait: 60000 + timeBetweenEvictionRunsMillis: 60000 + minEvictableIdleTimeMillis: 300000 + validationQuery: SELECT 1 FROM DUAL + testWhileIdle: true + testOnBorrow: false + testOnReturn: false + poolPreparedStatements: true + maxPoolPreparedStatementPerConnectionSize: 20 + filters: stat,slf4j + connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000 + datasource: + # 主库数据源 + master: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 + username: root + password: password + # 从库数据源 + # slave: + # username: + # password: + # url: + # driver-class-name: + # seata: true # 开启seata代理,开启后默认每个数据源都代理,如果某个不需要代理可单独关闭 + +# seata配置 +seata: + # 默认关闭,如需启用spring.datasource.dynami.seata需要同时开启 + enabled: false + # Seata 应用编号,默认为 ${spring.application.name} + application-id: ${spring.application.name} + # Seata 事务组编号,用于 TC 集群名 + tx-service-group: ${spring.application.name}-group + # 关闭自动代理 + enable-auto-data-source-proxy: false + # 服务配置项 + service: + # 虚拟组和分组的映射 + vgroup-mapping: + ruoyi-system-group: default + config: + type: nacos + nacos: + serverAddr: 127.0.0.1:8848 + group: SEATA_GROUP + namespace: + registry: + type: nacos + nacos: + application: seata-server + server-addr: 127.0.0.1:8848 + namespace: + +# mybatis配置 +mybatis: + # 搜索指定包别名 + typeAliasesPackage: com.ruoyi.system + # 配置mapper的扫描,找到所有的mapper.xml映射文件 + mapperLocations: classpath:mapper/**/*.xml + +# swagger配置 +swagger: + title: 系统模块接口文档 + license: Powered By ruoyi + licenseUrl: https://ruoyi.vip \ No newline at end of file diff --git a/sql/contentYml/sentinel-ruoyi-gateway.json b/sql/contentYml/sentinel-ruoyi-gateway.json new file mode 100644 index 00000000..66e7d9b2 --- /dev/null +++ b/sql/contentYml/sentinel-ruoyi-gateway.json @@ -0,0 +1,34 @@ +[ + { + "resource": "ruoyi-auth", + "count": 500, + "grade": 1, + "limitApp": "default", + "strategy": 0, + "controlBehavior": 0 + }, + { + "resource": "ruoyi-system", + "count": 1000, + "grade": 1, + "limitApp": "default", + "strategy": 0, + "controlBehavior": 0 + }, + { + "resource": "ruoyi-gen", + "count": 200, + "grade": 1, + "limitApp": "default", + "strategy": 0, + "controlBehavior": 0 + }, + { + "resource": "ruoyi-job", + "count": 300, + "grade": 1, + "limitApp": "default", + "strategy": 0, + "controlBehavior": 0 + } +] \ No newline at end of file diff --git a/sql/ry_config_20211118.sql b/sql/ry_config_20211118.sql index 3a3f7dfe..342a2673 100644 --- a/sql/ry_config_20211118.sql +++ b/sql/ry_config_20211118.sql @@ -32,15 +32,15 @@ CREATE TABLE `config_info` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='config_info'; insert into config_info(id, data_id, group_id, content, md5, gmt_create, gmt_modified, src_user, src_ip, app_name, tenant_id, c_desc, c_use, effect, type, c_schema) values -(1,'application-dev.yml','DEFAULT_GROUP','spring:\n main:\n allow-bean-definition-overriding: true\n autoconfigure:\n exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure\n # redis配置\n redis:\n timeout: 10s\n ssl: false\n #jackson配置\n jackson:\n # 日期格式化\n date-format: yyyy-MM-dd HH:mm:ss\n serialization:\n # 格式化输出\n INDENT_OUTPUT: false\n # 忽略无法转换的对象\n fail_on_empty_beans: false\n deserialization:\n # 允许对象忽略json中不存在的属性\n fail_on_unknown_properties: false\n# redisson 缓存配置\nredisson:\n cacheGroup:\n # 用例: @Cacheable(cacheNames=\"groupId\", key=\"#XXX\") 方可使用缓存组配置\n - groupId: redissonCacheMap\n # 组过期时间(脚本监控)\n ttl: 60000\n # 组最大空闲时间(脚本监控)\n maxIdleTime: 60000\n # 组最大长度\n maxSize: 0\n # 线程池数量\n threads: 16\n # Netty线程池数量\n nettyThreads: 32\n # 传输模式\n transportMode: \"NIO\"\n # 单节点配置\n singleServerConfig:\n # 客户端名称\n clientName: ${ruoyi.name}\n # 最小空闲连接数\n connectionMinimumIdleSize: 32\n # 连接池大小\n connectionPoolSize: 64\n # 连接空闲超时,单位:毫秒\n idleConnectionTimeout: 10000\n # 命令等待超时,单位:毫秒\n timeout: 3000\n # 如果尝试在此限制之内发送成功,则开始启用 timeout 计时。\n retryAttempts: 3\n # 命令重试发送时间间隔,单位:毫秒\n retryInterval: 1500\n # 发布和订阅连接的最小空闲连接数\n subscriptionConnectionMinimumIdleSize: 1\n # 发布和订阅连接池大小\n subscriptionConnectionPoolSize: 50\n # 单个连接最大订阅数量\n subscriptionsPerConnection: 5\n # DNS监测时间间隔,单位:毫秒\n dnsMonitoringInterval: 5000\n# feign 配置\nfeign:\n sentinel:\n enabled: true\n okhttp:\n enabled: true\n httpclient:\n enabled: false\n client:\n config:\n default:\n connectTimeout: 10000\n readTimeout: 10000\n compression:\n request:\n enabled: true\n response:\n enabled: true\n\n# 暴露监控端点\nmanagement:\n endpoints:\n web:\n exposure:\n include: \'*\'\n','760986157e62a0c1e0dadf9d2a6acf40','2019-11-29 16:31:20','2021-11-16 12:03:58','','0:0:0:0:0:0:0:1','','','通用配置','null','null','yaml','null'), -(2,'ruoyi-gateway-dev.yml','DEFAULT_GROUP','spring:\n redis:\n host: localhost\n port: 6379\n password: \n cloud:\n gateway:\n discovery:\n locator:\n lowerCaseServiceId: true\n enabled: true\n routes:\n # 认证中心\n - id: ruoyi-auth\n uri: lb://ruoyi-auth\n predicates:\n - Path=/auth/**\n filters:\n # 验证码处理\n - CacheRequestFilter\n - ValidateCodeFilter\n - StripPrefix=1\n # 代码生成\n - id: ruoyi-gen\n uri: lb://ruoyi-gen\n predicates:\n - Path=/code/**\n filters:\n - StripPrefix=1\n # 定时任务\n - id: ruoyi-job\n uri: lb://ruoyi-job\n predicates:\n - Path=/schedule/**\n filters:\n - StripPrefix=1\n # 系统模块\n - id: ruoyi-system\n uri: lb://ruoyi-system\n predicates:\n - Path=/system/**\n filters:\n - StripPrefix=1\n # 文件服务\n - id: ruoyi-file\n uri: lb://ruoyi-file\n predicates:\n - Path=/file/**\n filters:\n - StripPrefix=1\n\n# 安全配置\nsecurity:\n # 验证码\n captcha:\n enabled: true\n type: math\n # 防止XSS攻击\n xss:\n enabled: true\n excludeUrls:\n - /system/notice\n # 不校验白名单\n ignore:\n whites:\n - /auth/logout\n - /auth/login\n - /auth/register\n - /*/v2/api-docs\n - /csrf\n','2f5a6b5a4ccf20b5801c5cf842456ec6','2020-05-14 14:17:55','2021-07-30 09:07:14',NULL,'0:0:0:0:0:0:0:1','','','网关模块','null','null','yaml','null'), -(3,'ruoyi-auth-dev.yml','DEFAULT_GROUP','spring: \r\n redis:\r\n host: localhost\r\n port: 6379\r\n password: \r\n','b7354e1eb62c2d846d44a796d9ec6930','2020-11-20 00:00:00','2021-02-28 21:06:58',NULL,'0:0:0:0:0:0:0:1','','','认证中心','null','null','yaml','null'), -(4,'ruoyi-monitor-dev.yml','DEFAULT_GROUP','# spring\r\nspring: \r\n security:\r\n user:\r\n name: ruoyi\r\n password: 123456\r\n boot:\r\n admin:\r\n ui:\r\n title: 若依服务状态监控\r\n','d8997d0707a2fd5d9fc4e8409da38129','2020-11-20 00:00:00','2020-12-21 16:28:07',NULL,'0:0:0:0:0:0:0:1','','','监控中心','null','null','yaml','null'), -(5,'ruoyi-system-dev.yml','DEFAULT_GROUP','# spring配置\r\nspring: \r\n redis:\r\n host: localhost\r\n port: 6379\r\n password: \r\n datasource:\r\n druid:\r\n stat-view-servlet:\r\n enabled: true\r\n loginUsername: admin\r\n loginPassword: 123456\r\n dynamic:\r\n druid:\r\n initial-size: 5\r\n min-idle: 5\r\n maxActive: 20\r\n maxWait: 60000\r\n timeBetweenEvictionRunsMillis: 60000\r\n minEvictableIdleTimeMillis: 300000\r\n validationQuery: SELECT 1 FROM DUAL\r\n testWhileIdle: true\r\n testOnBorrow: false\r\n testOnReturn: false\r\n poolPreparedStatements: true\r\n maxPoolPreparedStatementPerConnectionSize: 20\r\n filters: stat,slf4j\r\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\r\n datasource:\r\n # 主库数据源\r\n master:\r\n driver-class-name: com.mysql.cj.jdbc.Driver\r\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\r\n username: root\r\n password: password\r\n # 从库数据源\r\n # slave:\r\n # username: \r\n # password: \r\n # url: \r\n # driver-class-name: \r\n # seata: true # 开启seata代理,开启后默认每个数据源都代理,如果某个不需要代理可单独关闭\r\n\r\n# seata配置\r\nseata:\r\n # 默认关闭,如需启用spring.datasource.dynami.seata需要同时开启\r\n enabled: false\r\n # Seata 应用编号,默认为 ${spring.application.name}\r\n application-id: ${spring.application.name}\r\n # Seata 事务组编号,用于 TC 集群名\r\n tx-service-group: ${spring.application.name}-group\r\n # 关闭自动代理\r\n enable-auto-data-source-proxy: false\r\n # 服务配置项\r\n service:\r\n # 虚拟组和分组的映射\r\n vgroup-mapping:\r\n ruoyi-system-group: default\r\n config:\r\n type: nacos\r\n nacos:\r\n serverAddr: 127.0.0.1:8848\r\n group: SEATA_GROUP\r\n namespace:\r\n registry:\r\n type: nacos\r\n nacos:\r\n application: seata-server\r\n server-addr: 127.0.0.1:8848\r\n namespace:\r\n\r\n# mybatis配置\r\nmybatis:\r\n # 搜索指定包别名\r\n typeAliasesPackage: com.ruoyi.system\r\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\r\n mapperLocations: classpath:mapper/**/*.xml\r\n\r\n# swagger配置\r\nswagger:\r\n title: 系统模块接口文档\r\n license: Powered By ruoyi\r\n licenseUrl: https://ruoyi.vip','ac8913dee679e65bb7d482df5f267d4e','2020-11-20 00:00:00','2021-01-27 10:42:25',NULL,'0:0:0:0:0:0:0:1','','','系统模块','null','null','yaml','null'), -(6,'ruoyi-gen-dev.yml','DEFAULT_GROUP','# spring配置\r\nspring: \r\n redis:\r\n host: localhost\r\n port: 6379\r\n password: \r\n datasource: \r\n driver-class-name: com.mysql.cj.jdbc.Driver\r\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\r\n username: root\r\n password: password\r\n\r\n# mybatis配置\r\nmybatis:\r\n # 搜索指定包别名\r\n typeAliasesPackage: com.ruoyi.gen.domain\r\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\r\n mapperLocations: classpath:mapper/**/*.xml\r\n\r\n# swagger配置\r\nswagger:\r\n title: 代码生成接口文档\r\n license: Powered By ruoyi\r\n licenseUrl: https://ruoyi.vip\r\n\r\n# 代码生成\r\ngen: \r\n # 作者\r\n author: ruoyi\r\n # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool\r\n packageName: com.ruoyi.system\r\n # 自动去除表前缀,默认是false\r\n autoRemovePre: false\r\n # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)\r\n tablePrefix: sys_\r\n','8c79f64a4cca9b821a03dc8b27a2d8eb','2020-11-20 00:00:00','2021-01-26 10:36:45',NULL,'0:0:0:0:0:0:0:1','','','代码生成','null','null','yaml','null'), -(7,'ruoyi-job-dev.yml','DEFAULT_GROUP','# spring配置\r\nspring: \r\n redis:\r\n host: localhost\r\n port: 6379\r\n password: \r\n datasource:\r\n driver-class-name: com.mysql.cj.jdbc.Driver\r\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\r\n username: root\r\n password: password\r\n\r\n# mybatis配置\r\nmybatis:\r\n # 搜索指定包别名\r\n typeAliasesPackage: com.ruoyi.job.domain\r\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\r\n mapperLocations: classpath:mapper/**/*.xml\r\n\r\n# swagger配置\r\nswagger:\r\n title: 定时任务接口文档\r\n license: Powered By ruoyi\r\n licenseUrl: https://ruoyi.vip\r\n','d6dfade9a2c93c463ae857cd503cb172','2020-11-20 00:00:00','2021-01-26 10:36:04',NULL,'0:0:0:0:0:0:0:1','','','定时任务','null','null','yaml','null'), -(8,'ruoyi-file-dev.yml','DEFAULT_GROUP','# 本地文件上传 \r\nfile:\r\n domain: http://127.0.0.1:9300\r\n path: D:/ruoyi/uploadPath\r\n prefix: /statics\r\n\r\n# FastDFS配置\r\nfdfs:\r\n domain: http://8.129.231.12\r\n soTimeout: 3000\r\n connectTimeout: 2000\r\n trackerList: 8.129.231.12:22122\r\n\r\n# Minio配置\r\nminio:\r\n url: http://8.129.231.12:9000\r\n accessKey: minioadmin\r\n secretKey: minioadmin\r\n bucketName: test','5382b93f3d8059d6068c0501fdd41195','2020-11-20 00:00:00','2020-12-21 21:01:59',NULL,'0:0:0:0:0:0:0:1','','','文件服务','null','null','yaml','null'), -(9,'sentinel-ruoyi-gateway','DEFAULT_GROUP','[\r\n {\r\n \"resource\": \"ruoyi-auth\",\r\n \"count\": 500,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"ruoyi-system\",\r\n \"count\": 1000,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"ruoyi-gen\",\r\n \"count\": 200,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"ruoyi-job\",\r\n \"count\": 300,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n }\r\n]','9f3a3069261598f74220bc47958ec252','2020-11-20 00:00:00','2020-11-20 00:00:00',NULL,'0:0:0:0:0:0:0:1','','','限流策略','null','null','json','null'); +(1,'application-dev.yml','DEFAULT_GROUP','# 将项目路径:sql/contentYml/下对应文件中内容复制到此处\n','760986157e62a0c1e0dadf9d2a6acf40','2019-11-29 16:31:20','2021-11-16 12:03:58','','0:0:0:0:0:0:0:1','','','通用配置','null','null','yaml','null'), +(2,'ruoyi-gateway-dev.yml','DEFAULT_GROUP','# 将项目路径:sql/contentYml/下对应文件中内容复制到此处\n','2f5a6b5a4ccf20b5801c5cf842456ec6','2020-05-14 14:17:55','2021-07-30 09:07:14',NULL,'0:0:0:0:0:0:0:1','','','网关模块','null','null','yaml','null'), +(3,'ruoyi-auth-dev.yml','DEFAULT_GROUP','# 将项目路径:sql/contentYml/下对应文件中内容复制到此处\n','b7354e1eb62c2d846d44a796d9ec6930','2020-11-20 00:00:00','2021-02-28 21:06:58',NULL,'0:0:0:0:0:0:0:1','','','认证中心','null','null','yaml','null'), +(4,'ruoyi-monitor-dev.yml','DEFAULT_GROUP','# 将项目路径:sql/contentYml/下对应文件中内容复制到此处\n','d8997d0707a2fd5d9fc4e8409da38129','2020-11-20 00:00:00','2020-12-21 16:28:07',NULL,'0:0:0:0:0:0:0:1','','','监控中心','null','null','yaml','null'), +(5,'ruoyi-system-dev.yml','DEFAULT_GROUP','# 将项目路径:sql/contentYml/下对应文件中内容复制到此处\n','ac8913dee679e65bb7d482df5f267d4e','2020-11-20 00:00:00','2021-01-27 10:42:25',NULL,'0:0:0:0:0:0:0:1','','','系统模块','null','null','yaml','null'), +(6,'ruoyi-gen-dev.yml','DEFAULT_GROUP','# 将项目路径:sql/contentYml/下对应文件中内容复制到此处\n','8c79f64a4cca9b821a03dc8b27a2d8eb','2020-11-20 00:00:00','2021-01-26 10:36:45',NULL,'0:0:0:0:0:0:0:1','','','代码生成','null','null','yaml','null'), +(7,'ruoyi-job-dev.yml','DEFAULT_GROUP','# 将项目路径:sql/contentYml/下对应文件中内容复制到此处\n','d6dfade9a2c93c463ae857cd503cb172','2020-11-20 00:00:00','2021-01-26 10:36:04',NULL,'0:0:0:0:0:0:0:1','','','定时任务','null','null','yaml','null'), +(8,'ruoyi-file-dev.yml','DEFAULT_GROUP','# 将项目路径:sql/contentYml/下对应文件中内容复制到此处\n','5382b93f3d8059d6068c0501fdd41195','2020-11-20 00:00:00','2020-12-21 21:01:59',NULL,'0:0:0:0:0:0:0:1','','','文件服务','null','null','yaml','null'), +(9,'sentinel-ruoyi-gateway','DEFAULT_GROUP','# 将项目路径:sql/contentYml/下对应文件中内容复制到此处\n','9f3a3069261598f74220bc47958ec252','2020-11-20 00:00:00','2020-11-20 00:00:00',NULL,'0:0:0:0:0:0:0:1','','','限流策略','null','null','json','null'); /******************************************/