10.yml的一般配置

debug: false
mybatis:
  type-aliases-package: com.yuqiyu.jpf.entity
  configuration:
    cache-enabled: false
spring:
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    driver-class-name: com.mysql.jdbc.Driver
 url: jdbc:mysql://localhost3306/sd_roulette?useUnicode=true&characterEncoding=utf8&autoReconnect=true&allowMultiQueries=true
    username: root
    password:root
  mvc:
    favicon:
enabled: false
    view:
      prefix: /home/
      suffix: .html
redis:
      # Redis数据库索引(默认为0)
      database: 10
      # Redis服务器地址
      host: localhost
      # Redis服务器连接端口
      port: 7701
  # Redis服务器连接密码(默认为空)
      password: sd888
      timeout: 0
      pool:
        # 连接池最大连接数(使用负值表示没有限制)
        max-active: 8
        # 连接池最大阻塞等待时间(使用负值表示没有限制)
        max-wait: -1
  # 连接池中的最大空闲连接
        max-idle: 8
        # 连接池中的最小空闲连接
        min-idle: 0
        # 连接超时时间(毫秒)
        timeout: 0
server:
  port: 8080
  jpa:
    properties:
      hibernate:
        show_sql: true
        format_sql: true
# 分页配置
  pagehelper:
    helper-dialect: mysql
    reasonable: true
    support-methods-arguments: true
    params: count=countSql
# 与mybatis整合
  mybatis:
    mapperLocations: classpath:mapper/*.xml
    typeAliasesPackage: tk.mapper.model
logging:
    level:
      com:
        yuqiyu:
             jpf:
               mapper: debug
#logging.level.com.yuqiyu.jpf.mapper=debug
#添加sql语句






































你可能感兴趣的:(10.yml的一般配置)