update service name is not found

This commit is contained in:
dengqichen 2025-05-21 17:49:45 +08:00
parent f5978f265d
commit bf88e35561
5 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
FROM eclipse-temurin:21-jre
COPY ./target/yudao-gateway.jar /app.jar
COPY ./target/*.jar /app.jar
## 设置 TZ 时区
## 设置 JAVA_OPTS 环境变量,可通过 docker run -e "JAVA_OPTS=" 进行覆盖

View File

@ -1,2 +1,2 @@
server:
port: 8080
#server:
# port: 8080

View File

@ -17,7 +17,7 @@ public class ApiAccessLogCreateReqDTO {
private Long userId;
@Schema(description = "用户类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
private Integer userType;
@Schema(description = "应用名", requiredMode = Schema.RequiredMode.REQUIRED, example = "system-server")
@Schema(description = "应用名", requiredMode = Schema.RequiredMode.REQUIRED, example = "zoe-system")
@NotNull(message = "应用名不能为空")
private String applicationName;

View File

@ -14,7 +14,7 @@ public class ApiConstants {
*
* 注意需要保证和 spring.application.name 保持一致
*/
public static final String NAME = "zoe-infra-server";
public static final String NAME = "zoe-infra";
public static final String PREFIX = RpcConstants.RPC_API_PREFIX + "/infra";

View File

@ -10,9 +10,9 @@ EXPOSE 48081
CMD java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar app.jar
# docker -H tcp://172.22.222.6:2375 build -t 172.22.222.100:28082/zoe-system:1.0.0 .
# docker -H tcp://172.22.222.6:2375 build -t 172.22.222.100:28082/zoe-system:1.0.1 .
# docker -H tcp://172.22.222.6:2375 push 172.22.222.100:28082/zoe-system:1.0.0
# docker -H tcp://172.22.222.6:2375 push 172.22.222.100:28082/zoe-system:1.0.1
# docker -H tcp://172.22.222.6:2375 rmi 172.22.222.6:28082/zoe-system:1.0.0