zoukankan      html  css  js  c++  java
  • SpringBoot_yml配置文件

    spring:
      mail:
        host: smtp.qq.com
        username: 邮箱账号
        password: 授权码
        default-encoding: UTF-8
        port: 465
      mvc:
        hiddenmethod:
          filter:
            #开启MVC对 DELETE PUT 等方法的支持
            enabled: true
      thymeleaf:
        cache: false
      datasource:
        password: 密码
        username: 账号
        url: jdbc:mysql://数据库地址:3306/attack?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&allowMultiQueries=true
        driver-class-name: com.mysql.jdbc.Driver
        #引入Druid数据源
        type: com.alibaba.druid.pool.DruidDataSource
        #   数据源其他配置, DataSourceProperties中没有相关属性,默认无法绑定
        initialSize: 8
        minIdle: 5
        maxActive: 20
        maxWait: 60000
        timeBetweenEvictionRunsMillis: 60000
        minEvictableIdleTimeMillis: 300000
        validationQuery: SELECT 1 FROM DUAL
        testWhileIdle: true
        testOnBorrow: false
        testOnReturn: false
        poolPreparedStatements: true
        #   配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
        filters: stat,wall,logback
        maxPoolPreparedStatementPerConnectionSize: 25
        useGlobalDataSourceStat: true
        connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500
    mybatis:
      #对应接口映射配置文件
      mapper-locations: classpath:mybatis/mapper/*.xml
      #核心配置
      configuration:
        map-underscore-to-camel-case: true
    #日志文件
    logging:
      level:
        cn.yangsansui.*: DEBUG
    server:
      port: 8090
  • 相关阅读:
    桌面右击新建没有记事本以解决?
    mysql int(3)与int(11)的区别
    PHPCMS 权限
    PHP 全局函数
    SESSION 丢失
    成功配置gVim的ZenCoding插件
    phpcms 模版源码分析
    更新首页
    隐藏apache访问错误显示系统和版本信息
    nginx 编译安装
  • 原文地址:https://www.cnblogs.com/sansui/p/12495746.html
Copyright © 2011-2022 走看看