server: port: 8086 # 应用名称 spring: profiles: active: dev #开发环境配置文件 # active: test #测试环境配置文件 # active: pro #生产环境配置文件 application: name: student_portrait # 单数据源配置 # datasource: ## driver-class-name: com.mysql.cj.jdbc.Driver ## url: jdbc:mysql://172.16.20.45:3306/activerecord?characterEncoding=utf-8&useSSL=FALSE&useAffectedRows=TRUE&allowMultiQueries=true&serverTimezone=GMT%2B8 ## username: root ## password: Chuanghai_2021. # driver-class-name: com.mysql.cj.jdbc.Driver # url: jdbc:mysql://172.16.20.69:3306/student_portrait?characterEncoding=utf-8&useSSL=FALSE&useAffectedRows=TRUE&allowMultiQueries=true&serverTimezone=GMT%2B8 # username: root # password: chuanghai@2022 #多数据源配置 datasource: dynamic: primary: mysql1 #设置默认的数据源或者数据源组,默认值即为mysql1 strict: false #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源 datasource: mysql1: username: root # password: chuanghai@2022 #服务器密码 # url: jdbc:mysql://172.16.20.69:3306/student_portrait?characterEncoding=utf-8&useSSL=FALSE&useAffectedRows=TRUE&allowMultiQueries=true&serverTimezone=GMT%2B8 password: root #本地密码 url: jdbc:mysql://127.0.0.1:3306/student_portrait?characterEncoding=utf-8&useSSL=FALSE&useAffectedRows=TRUE&allowMultiQueries=true&serverTimezone=GMT%2B8 driver-class-name: com.mysql.cj.jdbc.Driver # 3.2.0开始支持SPI可省略此配置 mysql2: url: jdbc:mysql://172.16.20.45:3306/smartschool_bigdata?characterEncoding=utf-8&useSSL=FALSE&useAffectedRows=TRUE&allowMultiQueries=true&serverTimezone=GMT%2B8 username: root password: Chuanghai_2021. driver-class-name: com.mysql.cj.jdbc.Driver mysql3: url: jdbc:mysql://172.16.40.249:3306/db_libsp_sync?characterEncoding=utf-8&useSSL=FALSE&useAffectedRows=TRUE&allowMultiQueries=true&serverTimezone=GMT%2B8 username: ods password: '@ods123456' driver-class-name: com.mysql.cj.jdbc.Driver servlet: multipart: enabled: true file-size-threshold: 0 max-file-size: 10MB max-request-size: 10MB redis: host: 127.0.0.1 port: 6379 # password: root@123456 没有设置密码 database: 0 timeout: 20000 cache: redis: time-to-live: 20000 #设置缓存数据的过期时间 cache-null-values: false #是否缓存空值 #logging: # # 设置logback.xml位置 # # config: classpath:logs/logback.xml # # 设置log4j.properties位置 # config: # classpath: logs/logback.xml mybatis-plus: configuration: # 驼峰命名和底杠命名自动转换 map-underscore-to-camel-case: true # Mybatis默认简单日志 #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #mybatis 的运行日志,测试时需注释 # MyBatis 自动映射策略,通过该配置可指定 MyBatis 是否并且如何来自动映射数据表字段与对象的属性,总共有 3 种可选值: # AutoMappingBehavior.NONE:不启用自动映射 # AutoMappingBehavior.PARTIAL:只对非嵌套的 resultMap 进行自动映射 # AutoMappingBehavior.FULL:对所有的 resultMap 都进行自动映射 auto-mapping-behavior: full global-config: db-config: # MybatisPlus 设置全局主键生成策略:自增 id-type: auto # 逻辑删除字段名 logic-delete-field: isDeleted # 逻辑删除字面值:未删除为0 logic-not-delete-value: 0 # 逻辑删除字面值:删除为1 logic-delete-value: 1 #微校相关配置 weixiao: app_key: DB60250B489345ED response_type: code scope: snsapi_sso ocode: 1015730314 app_secret: 68ED5D4B98DD8817C1558A8FCAF9D1BF redirect_uri: http://5d519a3d.cpolar.top/ #远程IP端口、接口 decisionEngine: url: #百胜人员识别 #product: http://39.108.175.59:9090/device/sync_person product: http://39.108.175.59:5389/device/sync_person #二维码的门禁记录服务地址 qrcode: https://chtech.ncjti.edu.cn/access-control/ncjtEntranceGuard/getTrafficRecordViewPageList #热水使用记录 waterUrl: http://192.168.1.34:8080/HotWaters/waterfindConsume.action #热水登入 hotLogin: http://192.168.1.34:8080/HotWaters/userlog.action nvr: nvrip: 172.22.45.25 nvrport: 80 nvruname: admin nvrpwd: ncjtxy@2021 logging: level: com.chuanghai: error