Newer
Older
casic-smart-kitchen / casic-web / src / main / resources / config / application.yml
wangpeng on 18 Jan 2023 2 KB 年底终版
##########################################################
##################  所有profile共有的配置  #################
##########################################################
spring:
  profiles:
    #pom中配置环境
    active: dev
  servlet:
    multipart:
      max-file-size: 100MB
      max-request-size: 100MB
#mybatis-plus:
#    sql-injector: com.baomidou.mybatisplus.mapper.LogicSqlInjector
###################  mybatis-plus配置  ###################
###################  guns配置  ###################
mybatis-plus:
  global-config:
    #字段策略 0:"所有字段都更新和插入" 1:"只更新和插入非NULL值" 2:"只更新和插入非NULL值且非空字符串"
    field-strategy: 1
    enable-sql-runner: true
  configuration:
    # 配置结果集属性为空时 是否映射返回结果
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #打印sql语句,调试用
    map-underscore-to-camel-case: true
casic:
  swagger-open: true #是否开启swagger (true/false)
  kaptcha-open: false #是否开启登录时验证码 (true/false)
  muti-datasource-open: false #是否开启多数据源(true/false)
  spring-session-open: false #是否开启spring session,如果是多机环境需要开启(true/false)
  session-invalidate-time: 86400 #session失效时间(只在单机环境下生效,,多机环境在SpringSessionConfig类中配置) 单位:秒
  session-validation-interval: 900 #多久检测一次失效的session(只在单机环境下生效) 单位:秒
  no-login-urls: /user/login,/kaptcha,/config/baseConfig

  config:
    export-path: D:\java\boot\guns-web-1.0.0-SNAPSHOT\export\
    config-path: E:\Develop\IdeaProject\smartcity\casic-smartcity-dcms\casic-web\src\main\resources\config\

#代码生成器配置
code:
  generate:
    #作者
    author: wangpeng
    #待生成对象表名
    table-name: bus_qualify_info

sms:
  accessKeyId: LTAI5tAeMudHNNCx9UXQmnhK
  secret: DpLMvX7F8PSzopxxJZFaedEHeKfzcw
  signName: 阿里云短信测试
  templateCode: SMS_154950909
  regionId: cn-hangzhou