SpringBoot配置

#############  端口号
server:
  port: 311
#############  数据库
spring:
  datasource:
    url: jdbc:mysql://localhost:3306/dk
    username: root
    password: 123
    driver-class-name: com.mysql.jdbc.Driver
#############  热部署
  devtools:
    restart:
      enabled: true
      additional-exclude: src/main/java   
#############  freemrker
  freemarker:
    #关闭缓存的
    charset: UTF-8
    content-type: text/html; charset=utf-8
    cache: false
    check-template-location: true
    template-loader-path: classpath:/templates
    suffix: .ftl
#############  thymeleaf
  thymeleaf:
    prefix: classpath:/templates/
    suffix: .html
    mode: HTML5
    encoding: UTF-8
    servlet:
      content-type: text/html; charset=utf-8
    cache: true

#############  静态资源
  mvc:
    static-path-pattern: /static/**
#############  配置资源文件
  messages:
    basename: i18n/messages
    encoding: UTF-8
  redis:
    database: 1
    host: 192.168.10.105
    port: 6379
    password: 
    jedis:
      pool:
        max-idle: 10
        max-wait: -1
        max-active: 1000
        min-idle: 2
    timeout: 200
    
mybatis:
    type-aliases-package: com.example.demo.entity
    mapper-locations: classpath:mapper/*.xml

mapper:
    mappers:
        - com.example.demo.utils.MyMapper
    not-empty: false
    identity: MYSQL
#分页插件配置
pagehelper:
    helperDialect: mysql
    reasonable: true
    supportMethodsArguments: true
    params: count=countSql
    
    
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值