1刪除原來的配置文件
2新建三個文件
3??????????? application.yml
spring:
profiles:
active: dev
4?????????? application-dev.yml
server:
port:8082
? servlet:
context-path: /test
spring:
datasource:
driver-class-name:com.mysql.cj.jdbc.Driver
? ? url: jdbc:mysql://localhost:3306/db_prescription?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
username: root
password: root
jpa:
show-sql:true
5?????? application-prod.yml
server:
port:8082
? servlet:
context-path: /test