Skip to content

Commit

Permalink
feat: 文档更新
Browse files Browse the repository at this point in the history
  • Loading branch information
zerolincku committed Jun 16, 2024
1 parent 127c883 commit 1a6b51e
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 15 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align=center>
<h1>Passiflora</h1>
<h1>Passiflora Cloud</h1>
</div>

### 项目结构
Expand All @@ -10,16 +10,18 @@
│   │   ├── passiflora-bom (依赖版本配置)
│   │   ├── passiflora-codegen (代码生成)
│   │   ├── passiflora-common (通用组件)
│   │   ├── passiflora-feign (Feignz组件
│   │   ├── passiflora-feign (Feign组件
│   │   └── passiflora-model (Model组件)
│   ├── passiflora-gateway-app (网关)
│   └── passiflora-system-app (系统应用)
└── passiflora-ui (前端项目)
```
### [授权说明](document%2Fzh%2FLicense.md)
### [授权说明](document%2Fzh%2F授权说明.md)

### [多环境说明](document%2Fzh%2FMultiEnv.md)
### [多环境说明](document%2Fzh%2F多环境说明.md)

### [开发环境搭建](document%2Fzh%2F开发环境搭建.md)

### [Docker-file 说明](document%2Fzh%2FDockerfile.md)

### [单元测试说明](document%2Fzh%2FUnitTest.md)
### [单元测试说明](document%2Fzh%2F单元测试说明.md)
File renamed without changes.
File renamed without changes.
26 changes: 26 additions & 0 deletions document/zh/开发环境搭建.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 开发环境搭建

JDK 版本:21


将下列配置添加到 hosts 中,Windows 中 hosts 在 `C:\Windows\System32\drivers\etc` 目录下,Mac 中 hosts 在 `/etc` 目录下
```shell
# Passiflora Cloud
127.0.0.1 passiflora-postgres
127.0.0.1 passiflora-redis
127.0.0.1 passiflora-minio
127.0.0.1 passiflora-nacos
```


### minio 启动
```shell
docker run -d --name passiflora-minio \
--restart=always \
--publish 9000:9000 \
--publish 9001:9001 \
--env MINIO_ROOT_USER="minio" \
--env MINIO_ROOT_PASSWORD="password" \
-v /etc/localtime:/etc/localtime:ro \
bitnami/minio:2024.6.13
```
File renamed without changes.
12 changes: 6 additions & 6 deletions passiflora-server/config.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ environments {
database = '8'
}
minio {
endpoint = 'http://passiflora-minio:9090'
accessKey = '2Uwho01oDDbxZpzEjfb4'
secretKey = 'KIF9NCJR6SmyeVRAloQhUfrofI11FfGAhnsAXAoa'
endpoint = 'http://passiflora-minio:9000'
accessKey = '2Zj1xM3B7ti9rDt8TjIR'
secretKey = 'yHJ08hiDHAnd3ChR6CvETti8X1dqDvxgLxW0ojwJ'
}
system_app {
database {
Expand Down Expand Up @@ -44,9 +44,9 @@ environments {
database = '8'
}
minio {
endpoint = 'http://passiflora-minio:9090'
accessKey = 'pTHkPFHbhmBqgjVR35Ko'
secretKey = 'aPAtdzHGFTsI2qcxM7Q0krunDI80dd7Gtgm7grCR'
endpoint = 'http://passiflora-minio:9000'
accessKey = 'U2eBKxUCW5I70Xx4D0fR'
secretKey = 'NDPeMlhQLO36o0R3pG9lE4syXeZInm5o6dW6VfOa'
}
system_app {
database {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public class GlobalExceptionHandler implements ErrorWebExceptionHandler {
private final ObjectMapper objectMapper;

@Override
@SuppressWarnings("all")
public Mono<Void> handle(ServerWebExchange exchange, Throwable throwable) {
ServerHttpRequest request = exchange.getRequest();
ServerHttpResponse response = exchange.getResponse();
Expand Down Expand Up @@ -107,11 +108,11 @@ private void logException(ServerHttpRequest request, Throwable throwable) {
);
} else if (throwable instanceof NoResourceFoundException) {
log.warn(
"NoResourceFoundException: path={}, exception={}",
request.getPath(),
throwable.getMessage()
"NoResourceFoundException: path={}, exception={}",
request.getPath(),
throwable.getMessage()
);
}else {
} else {
log.error(
"Unexpected exception: path={}",
request.getPath(),
Expand Down

0 comments on commit 1a6b51e

Please sign in to comment.