修改 Spring 默认配置为使用 MySQL 数据库。

This commit is contained in:
Yang Jing
2020-07-05 16:07:33 +08:00
parent 27ce4d6a0d
commit a460e169ab
3 changed files with 29 additions and 32 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';
```
***根据所选择的数据库,使用 `-Dspring.profiles.active=pg` 指定配置文件,默认使用 `mysql`。***
***默认配置使用 MySQL 数据库,若要使用 PostgreSQL 数据库,使用 `-Dspring.profiles.active=pg` 指定 `application-pg.yml` 配置文件。***
---