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
SpringBoot_yml配置文件
原创
©著作权归作者所有:来自51CTO博客作者瑶瑶洋酱酱的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
yml多文档方式配置之application.yml
多文档方式配置通过—分隔符实现由于spring.profiles属性已弃用,则只能写成如上格式写成
spring boot spring 多文档 分隔符 -
SpringBoot--日志配置--application.yml
本文介绍SpringBoot的日志配置。
日志 spring xml 日志文件 -
application.yml 和 application.propertise 配置不生效
用IDEA初始化完spring项目后,手动将app
yml不生效 propertise不生效 application不生效 .idea删除 配置不生效 -
springboot的application.yml配置详解.net html
-
swift 音量改变监控
本文所提到的音频处理,特指以电脑为主要工具的数字化音频的制作与处理(数码音频),关于它的基本概念及原理,请参阅相关资料。 1、音频卡(声卡)的播放属性设置 正确安装好音频卡(声卡)的驱动程序后,Windows的状态栏右边将出现一个小喇叭
swift 音量改变监控 linux录制声卡声音 Windows 属性设置 状态栏