标签:yml test pat 前缀 针对 context 源码 localhost mvc
spring:
profiles:
active: dev #改为prd就是线上配置
#debug=true
debug: false
#server.port=80
#前缀相同的配置项,idea会自动进行归纳
server:
port: 8000
servlet:
context-path: /
thymeleaf:
cache: false
spring:
mvc:
date-format: yyyy-MM-dd
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/test
username: root
password: root
#debug=true
debug: false
#server.port=80
#前缀相同的配置项,idea会自动进行归纳
server:
port: 80
servlet:
context-path: /
#idean对yml有良好支持可自动生成
spring:
thymeleaf:
cache: false
mvc:
date-format: yyyy-MM-dd
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://166.87.93.124:3310/production
username: admin
password: 123!@#$
标签:yml test pat 前缀 针对 context 源码 localhost mvc
原文地址:https://www.cnblogs.com/itlaoqi/p/11391745.html