springspring boot的配置文件application.yml

Posted Legolas

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了springspring boot的配置文件application.yml相关的知识,希望对你有一定的参考价值。

spring:
datasource:
# 本地库
url: jdbc:mysql://192.168.18.7:3306/shiptrackersmart?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull
# 正式库
# url: jdbc:mysql://192.168.3.141:3306/shiptrackersmart?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull
username: root
password: root
driver-class-name: com.mysql.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
druid:
max-active: 20
initial-size: 1
min-idle: 3
max-wait: 60000
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
test-while-idle: true
test-on-borrow: false
test-on-return: false
thymeleaf:
prefix: classpath:/template/
suffix: .html
mode: LEGACYHTML5
encoding: UTF-8
cache: false

mybatis:
mapperLocations: classpath*:net/huadong/mapper/*/*.xml
configLocation: classpath:mybatis-config.xml

#server:
# port: 80

kaptcha:
session:
key: kaptcha.code
obscurificator:
impl: com.google.code.kaptcha.impl.ShadowGimpy
noise:
impl: com.google.code.kaptcha.impl.NoNoise
image:
width: 90
height: 33
textproducer:
font:
size: 26
color: black
char:
length: 4
space: 5

background:
clear:
from: 247,247,247
to: 247,247,247























































以上是关于springspring boot的配置文件application.yml的主要内容,如果未能解决你的问题,请参考以下文章

springSpring Boot:定制自己的starter

springspring boot 开启热部署

springspring boot 开启热部署

SpringSpring Boot 和 Spring Cloud 的关系

SpringSpring MVCMyBatis

SpringSpring系列5之Spring支持事务处理