server: port: 8075 spring: application: name: alarm-sharding # #springboot2.6后默认不支持循环依赖,因此暴力设置允许循环依赖,轻易不要使用 # main: # allow-circular-references: true mvc: pathmatch: matching-strategy: ANT_PATH_MATCHER http: encoding: force: true charset: UTF-8 enabled: true datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://123.60.219.66/wisdom_cs_hnj?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC username: root password: gyeepd@123 # driver-class-name: oracle.jdbc.OracleDriver # url: jdbc:oracle:thin:@123.60.213.70:1521:gdnxfd # username: nxfdprod # password: gdnxfd123 type: com.alibaba.druid.pool.DruidDataSource druid: max-active: 20 initial-size: 1 min-idle: 3 max-wait: 60000 time-between-eviction-runs-millis: 60000 min-evictable-idle-time-millis: 300000 test-while-idle: true test-on-borrow: false test-on-return: false jackson: date-format: yyyy-MM-dd HH:mm:ss time-zone: GMT+8 default-property-inclusion: always mybatis-plus: typeAliasesPackage: com.gyee.wisdom.alarm.sharding.entity mapper-locations: classpath:mappers/*.xml global-config: #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID"; id-type: 3 #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断" field-strategy: 2 #驼峰下划线转换 db-column-underline: true #mp2.3+ 全局表前缀 mp_ #table-prefix: mp_ #刷新mapper 调试神器 #refresh-mapper: true #数据库大写下划线转换 #capital-mode: true # Sequence序列接口实现类配置 key-generator: com.baomidou.mybatisplus.incrementer.OracleKeyGenerator #逻辑删除配置(下面3个配置) logic-delete-value: 1 logic-not-delete-value: 0 #sql-injector: com.baomidou.mybatisplus.mapper.LogicSqlInjector #自定义填充策略接口实现 #meta-object-handler: com.baomidou.springboot.MyMetaObjectHandler configuration: #配置返回数据库(column下划线命名&&返回java实体是驼峰命名),自动匹配无需as(没开启这个,SQL需要写as: select user_id as userId) map-underscore-to-camel-case: true cache-enabled: false #配置JdbcTypeForNull, oracle数据库必须配置 jdbc-type-for-null: 'null' callSettersOnNulls: true logging: level: com: gyee: wisdom: alarm: sharding: mapper: debug service: info sharding: config: #分表开始时间 格式:yyyy-MM-dd startDate: 2018-01-01 count: custom: true fault: false stationname: HNJ #tablespace: TS_GDSJ_DATA tablespace: TS_NXFD_DATA adapterUrl: http://123.60.219.66:8011/ts rule_encryption: false