码迷,mamicode.com
首页 > 编程语言 > 详细

springboot yml文件

时间:2019-09-16 09:52:05      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:let   typealias   rtt   xxxx   resource   tsm   填充   api   meta   

 

server:
  port: 9093
  servlet:
    context-path: /area/ # 项目的整体前缀
web:
  uploadPath: E:/file123/file456/
  success: 200
  error: 0
  # 毫秒 (redis  token的保存失效)
  jwtTimeOut: 10000


spring:
  datasource:
    url: jdbc:mysql://192.168.x.xx:3306/manager_area?useUnicode=true&characterEncoding=UTF-8&characterEncoding=UTF-8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull
    username: xxxx
    password: xxx
    driver-class-name: com.mysql.jdbc.Driver

  redis:
    host: 127.0.0.1
    port: 6379
    password:
    jedis:
      pool:
        min-idle: 8
        max-idle: 500
        max-active: 2000
        max-wait: 10000
    timeout: 0

  cache: # cache缓存使用
    type: simple

  #mvc:
    #static-path-pattern: /projectsmange/picture/projectShow/**  # 静态资源访问路径
  #resources:
    #static-locations: E:\123\projects\springboot/ # 静态资源实际指向路径
  jackson:
    date-format: yyyy-MM-dd HH:mm:ss
    time-zone: GMT+8



#MyBatis
mybatis-plus:
  mapper-locations: classpath:com/area/mapper/xml/*.xml,com/area/*/mapper/xml/*.xml
  #实体扫描,多个package用逗号或者分号分隔
  #typeAliasesPackage: com.test.springboot.entity.*
  global-config:
     #主键类型  0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
     id-type: 0
     #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
     field-strategy: 2
     #驼峰下划线转换
     db-column-underline: false
     #刷新mapper 调试神器
     refresh-mapper: true
     #数据库大写下划线转换
     #capital-mode: true
     # Sequence序列接口实现类配置
     #key-generator: com.baomidou.mybatisplus.incrementer.OracleKeyGenerator
     #逻辑删除配置
  logic-delete-value: 1
  logic-not-delete-value: 0
     #自定义填充策略接口实现
     #meta-object-handler: com.baomidou.springboot.xxx
     #自定义SQL注入器
     # sql-injector: com.baomidou.mybatisplus.mapper.LogicSqlInjector
  configuration:
     map-underscore-to-camel-case: true
     cache-enabled: false
     call-setters-on-nulls: true

logging:
  file: ./managearea/log
  level:
    com.quartz: DEBUG

pagehelper:
 helperDialect: mysql
 reasonable: true
 supportMethodsArguments: true
 params: count=countSql

 

springboot yml文件

标签:let   typealias   rtt   xxxx   resource   tsm   填充   api   meta   

原文地址:https://www.cnblogs.com/ynhk/p/11525416.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!