spring:
profiles:
active: dev
---
spring:
profiles: pro
server:
port: 80
---
spring:
profiles: dev
server:
port: 81
---
spring:
config:
activate:
on-profile: test
server:
port: 82
--------------------------------------------
server:
port: 80
spring:
datasource:
druid:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/book?serverTimezone=UTC
username: "root"
password: "root"
redis:
host: localhost
port: 6379
database: 0
mybatis-plus:
global-config:
db-config:
table-prefix: tbl_
id-type: auto
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
--------------------------------------------
spring:
servlet:
multipart:
max-request-size: 2GB
max-file-size: 1GB
--------------------------------------------
logging:
level:
root: info
com.itheima.controller: debug
pattern:
console: "%d %clr(%p) --- [%16t] %clr(%-40.40c){cyan} : %m %n"
file:
name: server.log
logback:
rollingpolicy:
max-file-size: 4KB
file-name-pattern: server.%d{yyyy-MM-dd}.%i.log
--------------------------------------------
spring:
application:
name: springboot_mail
mail:
host: smtp.qq.com
username: 2849019757@qq.com
password: devttnkmjswndhdg
default-encoding: UTF-8
server:
port: 8080
--------------------------------------------
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/book
username: root
password: root
--------------------------------------------
spring:
devtools:
restart:
exclude: static/**,public/**,config/application.yml
--------------------------------------------
spring.thymeleaf.prefix=classpath:/templates/
spring.thymeleaf.suffix=.html
spring.thymeleaf.mode=HTML5
spring.thymeleaf.encoding=UTF-8
spring.thymeleaf.content-type=text/html
spring.thymeleaf.cache=false
--------------------------------------------
spring.thymeleaf.cache=false
spring.thymeleaf.content-type=text/html
spring.thymeleaf.enabled=true
spring.thymeleaf.encoding=UTF-8
spring.thymeleaf.mode=HTML5
spring.thymeleaf.prefix=classpath:/templates/
spring.thymeleaf.suffix=.html