From d1e4c9e2aab56e47786c688569dfe237a863e32c Mon Sep 17 00:00:00 2001 From: huanghongfa <18228131219@163.com> Date: 星期日, 20 十二月 2020 10:31:05 +0800 Subject: [PATCH] 认证中心本地配置 --- springcloud_k8s_panzhihuazhihuishequ/config-repo/auth-dev.yml | 136 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 136 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/config-repo/auth-dev.yml b/springcloud_k8s_panzhihuazhihuishequ/config-repo/auth-dev.yml new file mode 100644 index 0000000..0aea735 --- /dev/null +++ b/springcloud_k8s_panzhihuazhihuishequ/config-repo/auth-dev.yml @@ -0,0 +1,136 @@ +server: + port: 8191 +spring: + application: + name: auth + datasource: + type: com.alibaba.druid.pool.DruidDataSource + driverClassName: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://localhost:3306/smart_life?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 + username: root + password: 123456 + druid: + # 初始连接数 + initialSize: 5 + # 最小连接池数量 + minIdle: 10 + # 最大连接池数量 + maxActive: 20 + # 配置获取连接等待超时的时间 + maxWait: 60000 + # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 + timeBetweenEvictionRunsMillis: 60000 + # 配置一个连接在池中最小生存的时间,单位是毫秒 + minEvictableIdleTimeMillis: 300000 + # 配置一个连接在池中最大生存的时间,单位是毫秒 + maxEvictableIdleTimeMillis: 900000 + # 配置检测连接是否有效 + validationQuery: SELECT 1 FROM DUAL + testWhileIdle: true + testOnBorrow: false + testOnReturn: false + webStatFilter: + enabled: true + statViewServlet: + enabled: true + # 设置白名单,不填则允许所有访问 + allow: + url-pattern: /monitor/druid/* + filter: + stat: + enabled: true + # 慢SQL记录 + log-slow-sql: false + slow-sql-millis: 1000 + merge-sql: true + wall: + config: + multi-statement-allow: true + # redis 配置 + redis: + # 地址 + host: localhost + # 端口,默认为6379 + port: 6379 + # 密码 + password: + # 连接超时时间 + timeout: 10s + lettuce: + pool: + # 连接池中的最小空闲连接 + min-idle: 0 + # 连接池中的最大空闲连接 + max-idle: 8 + # 连接池的最大数据库连接数 + max-active: 8 + # #连接池最大阻塞等待时间(使用负值表示没有限制) + max-wait: -1ms + +# token配置 +token: + # 令牌自定义标识 + header: Authorization + # 令牌密钥 + secret: abcdefghijklmnopqrstuvwxyz + # 令牌有效期(默认30分钟) + expireTime: 30 + +auth: + # 名称 + name: zhihuishequ + # 版本 + version: 3.2.1 + # 版权年份 + copyrightYear: 2020 + # 实例演示开关 + demoEnabled: true + # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath) + profile: D:/ruoyi/uploadPath + # 获取ip地址开关 + addressEnabled: false + # 验证码类型 math 数组计算 char 字符验证 + captchaType: math + +eureka: + client: + service-url: + defaultZone: http://localhost:8192/eureka + instance: + prefer‐ip‐address: true #可以跨域访问 + + +feign: + hystrix: + enabled: true + +mybatis-plus: + #SIMPLE:该执行器类型不做特殊的事情,为每个语句的执行创建一个新的预处理语句,REUSE:该执行器类型会复用预处理语句,BATCH:该执行器类型会批量执行所有的更新语句 + default-executor-type: REUSE + configuration: + # 是否开启自动驼峰命名规则(camel case)映射,即从经典数据库列名 A_COLUMN(下划线命名) 到经典 Java 属性名 aColumn(驼峰命名) 的类似映射 + map-underscore-to-camel-case: true + # 全局地开启或关闭配置文件中的所有映射器已经配置的任何缓存,默认为 true + cache-enabled: false + #如果查询结果中包含空值的列,则 MyBatis 在映射的时候,不会映射这个字段 + call-setters-on-nulls: true + # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用 + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + global-config: + db-config: + #表名下划线命名默认true + table-underline: true + #id类型 + id-type: auto + #是否开启大写命名,默认不开启 + #capital-mode: false + #逻辑已删除值,(逻辑删除下有效) 需要注入逻辑策略LogicSqlInjector 以@Bean方式注入 + logic-not-delete-value: 0 + #逻辑未删除值,(逻辑删除下有效) + logic-delete-value: 1 + #数据库类型 + db-type: mysql + + + + -- Gitblit v1.7.1