通过 spring.profiles.active 指定配置来选择后端不同数据库的配置。

This commit is contained in:
Yang Jing
2020-07-02 21:39:02 +08:00
parent dc5949d497
commit 93eca239cb
4 changed files with 70 additions and 38 deletions

View File

@@ -76,7 +76,7 @@ create user admin encrypted password 'admin';
create database kafka_manager owner=admin template=template0 encoding='UTF-8' lc_collate='zh_CN.UTF-8' lc_ctype='zh_CN.UTF-8';
```
***根据所选择的数据库,请修改 [application.yml](web/src/main/resources/application.yml) 相应配置。***
***根据所选择的数据库,使用 `-Dspring.profiles.active=pg` 指定配置文件,默认使用 `mysql`。***
---