# 项目相关配置 xinelu: # 名称 name: xinelu-api # 版本GlobalExceptionHandler version: 0.0.1 # 版权年份 copyrightYear: 2023 # 实例演示开关 demoEnabled: true # 文件路径 示例( Windows配置D:/xinelu-file/uploadPath,Linux配置 /home/xinelu-file/uploadPath) profile: D:/xinelu-file/uploadPath # 获取ip地址开关 addressEnabled: false # 验证码类型 math 数组计算 char 字符验证 captchaType: math # 开发环境配置 server: # 服务器的HTTP端口,默认为8088 port: 8088 servlet: # 应用的访问路径 context-path: / tomcat: # tomcat的URI编码 uri-encoding: UTF-8 # 连接数满后的排队数,默认为100 accept-count: 1000 threads: # tomcat最大线程数,默认为200 max: 800 # Tomcat启动初始化的线程数,默认值10 min-spare: 100 # 日志配置 logging: level: com.xinelu: debug org.springframework: warn # Spring配置 spring: # 资源信息 messages: # 国际化资源文件路径 basename: i18n/messages profiles: active: dev # 文件上传 servlet: multipart: # 单个文件大小 max-file-size: 200MB # 设置总上传的文件大小 max-request-size: 500MB # 服务模块 devtools: restart: # 热部署开关 enabled: true # redis 配置 redis: # 地址 host: localhost # 端口,默认为6379 port: 6379 # 数据库索引 database: 0 # 密码 password: xinelu@6990 # 连接超时时间 timeout: 10s lettuce: pool: # 连接池中的最小空闲连接 min-idle: 0 # 连接池中的最大空闲连接 max-idle: 8 # 连接池的最大数据库连接数 max-active: 8 # #连接池最大阻塞等待时间(使用负值表示没有限制) max-wait: -1ms # token配置 token: # 令牌自定义标识 header: Authorization # 令牌密钥 secret: eaGoBFyEl31MGE3u1mt4teZFbk # 令牌有效期(默认30分钟) expireTime: 1440 #拦截白名单地址 ant-matchers: /applet/test/**,/nurseApplet/**,/nurseApp/**,/applet/register/** # MyBatis-Plus配置 mybatis-plus: # 实体扫描,多个package用逗号或者分号分隔 typeAliasesPackage: com.xinelu.**.domain # 对应的 XML 文件位置 mapperLocations: classpath*:mapper/**/*Mapper.xml # 启动时是否检查 MyBatis XML 文件的存在,默认不检查 checkConfigLocation: false # 通过该属性可指定 MyBatis 的执行器,MyBatis 的执行器总共有三种: executorType: SIMPLE # 指定外部化 MyBatis Properties 配置,通过该配置可以抽离配置,实现不同环境的配置部署 configurationProperties: null configuration: # 自动驼峰命名规则(camel case)映射 mapUnderscoreToCamelCase: true # 默认枚举处理类,如果配置了该属性,枚举将统一使用指定处理器进行处理 defaultEnumTypeHandler: org.apache.ibatis.type.EnumTypeHandler # 当设置为 true 的时候,懒加载的对象可能被任何懒属性全部加载,否则,每个属性都按需加载。需要和 lazyLoadingEnabled 一起使用。 aggressiveLazyLoading: true # MyBatis 自动映射策略 autoMappingBehavior: PARTIAL # MyBatis 自动映射时未知列或未知属性处理策 autoMappingUnknownColumnBehavior: NONE # Mybatis一级缓存,默认为 SESSION localCacheScope: SESSION # 开启Mybatis二级缓存,默认为 true cacheEnabled: true global-config: # 是否打印 Logo banner banner: true # 是否初始化 SqlRunner enableSqlRunner: false dbConfig: # 主键类型 AUTO 数据库ID自增 idType: AUTO # 表名前缀 tablePrefix: null # 字段 format,例: %s,(对主键无效) columnFormat: null # 表名是否使用驼峰转下划线命名,只对表名生效 tableUnderline: true # 大写命名,对表名和字段名均生效 capitalMode: false # 全局的entity的逻辑删除字段属性名 logicDeleteField: null # 逻辑已删除值 logicDeleteValue: 1 # 逻辑未删除值 logicNotDeleteValue: 0 # 字段验证策略之 insert,在 insert 的时候的字段验证策略 insertStrategy: NOT_NULL # 字段验证策略之 update,在 update 的时候的字段验证策略 updateStrategy: NOT_NULL # 字段验证策略之 select,在 select 的时候的字段验证策略既 wrapper 根据内部 entity 生成的 where 条件 selectStrategy: NOT_NULL # PageHelper分页插件 pagehelper: helperDialect: mysql reasonable: true supportMethodsArguments: true params: count=countSql # Swagger配置 swagger: # 是否开启swagger enabled: true # 请求前缀 pathMapping: /dev-api swagger-ui: base-url: com.xinelu.web # 防止XSS攻击 xss: # 过滤开关 enabled: true # 排除链接(多个用逗号分隔) excludes: /system/notice # 匹配链接 urlPatterns: /system/*,/monitor/*,/tool/* # 微信小程序配置 applet: wxAppid: wxccb16a452ab5e4b4 wxSecret: 72e11a5757e578c47ee935c00f49e8bf grantType: authorization_code openIDUrl: https://api.weixin.qq.com/sns/jscode2session # 附近机构,多少公里内 distance: 100.00 # 家医请求地址 fd: dy: http://192.168.124.10:8001/fd/mp dz: http://192.168.124.10:8002/fd/mp