diff --git a/yudao-server/Dockerfile b/yudao-server/Dockerfile index 4dcd1e0d0..234081ad0 100644 --- a/yudao-server/Dockerfile +++ b/yudao-server/Dockerfile @@ -16,4 +16,4 @@ ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms512m -Xmx512m" EXPOSE 48080 ## 启动后端项目 -CMD java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar -Dspring.profiles.active=dev app.jar +CMD java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar app.jar diff --git a/yudao-server/src/main/resources/application-local.yaml b/yudao-server/src/main/resources/application-local.yaml index 813f7d87f..0bbb845fc 100644 --- a/yudao-server/src/main/resources/application-local.yaml +++ b/yudao-server/src/main/resources/application-local.yaml @@ -1,5 +1,7 @@ server: port: 48080 + servlet: + context-path: /cyywl-api --- #################### 数据库相关配置 #################### diff --git a/yudao-server/src/main/resources/application-test.yaml b/yudao-server/src/main/resources/application-test.yaml index 371a21538..1383eea5b 100644 --- a/yudao-server/src/main/resources/application-test.yaml +++ b/yudao-server/src/main/resources/application-test.yaml @@ -1,7 +1,7 @@ server: port: 48080 servlet: - context-path: /admin-api + context-path: / --- #################### 数据库相关配置 ####################