Skip to content

Commit

Permalink
!24 添加mysql compose
Browse files Browse the repository at this point in the history
Merge pull request !24 from 小宇宙/master
  • Loading branch information
Java3y authored and gitee-org committed Jul 6, 2022
2 parents d6eeaf9 + 20fdf18 commit 444eb05
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.nio.charset.StandardCharsets;


/**
* @author 3y
Expand All @@ -19,7 +21,7 @@ public class ConfigServiceImpl implements ConfigService {
* 本地配置
*/
private static final String PROPERTIES_PATH = "local.properties";
private Props props = new Props(PROPERTIES_PATH);
private Props props = new Props(PROPERTIES_PATH, StandardCharsets.UTF_8);

/**
* apollo配置
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,4 @@ public <T> T getAccount(Integer sendAccount, String apolloKey, String prefix, Cl
}
return null;
}




}
17 changes: 17 additions & 0 deletions docker/mysql/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: '3'

services:
mysql:
image: mysql:5.7
container_name: mysql
restart: always
ports:
- 3306:3306
volumes:
- mysql-data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: austin_pwd+-
TZ: Asia/Shanghai
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
volumes:
mysql-data:

0 comments on commit 444eb05

Please sign in to comment.