Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAMLException Deploy springcloud in docker, using springcloudaliba #3434

Closed
fatebugs opened this issue Aug 25, 2023 · 4 comments
Closed

YAMLException Deploy springcloud in docker, using springcloudaliba #3434

fatebugs opened this issue Aug 25, 2023 · 4 comments
Labels

Comments

@fatebugs
Copy link

服务器环境:Windowsserver 2019
使用docker版本:Docker Desktop 4.21.1 (114176)
使用docker镜像:eclipse-temurin:11.0.19_7-jre-windowsservercore-1809
nacos版本:2.2.0
spring.cloud.alibaba.version:2021.0.1.0

Server environment: Windows server 2019
Use docker version: Docker Desktop 4.21.1 (114176)
Use the docker image: eclipse-temurin:11.0.19_7-jre-windowsservercore-1809
Nacos version: 2.2.0
spring.cloud.alibaba.version: 2021.0.1.0

出现问题:
image

原因是我在配置文件中使用了中文导致的

我想问一下,我是否有办法将启动时读取nacos配置文件使用的读取yaml方法进行替换或者修改
使得我能够在nacos中保留中文配置

由于是WindowsServerdocker,所以docker镜像中貌似并不能修改系统的字符集

The reason is that I used Chinese in the configuration file

I would like to ask, is there a way for me to replace or modify the method of reading yaml used to read nacos configuration files at startup
Allows me to keep the Chinese configuration in nacos

Since it is WindowsServerdocker, it seems that the character set of the system cannot be modified in the docker image

@yuluo-yx
Copy link
Collaborator

Maybe you can try properties configuration files?

@github-actions
Copy link

This issue has been open 30 days with no activity. This will be closed in 7 days.

@github-actions github-actions bot added the stale label Sep 24, 2023
@github-actions
Copy link

github-actions bot commented Oct 1, 2023

This issue has been automatically marked as stale because it hasn't had any recent activity.If you think this should still be open, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for your interest and contribution to the Sping Cloud Alibaba Community.

@pei-han
Copy link

pei-han commented Dec 13, 2024

服务器环境:Windowsserver 2019 使用docker版本:Docker Desktop 4.21.1 (114176) 使用docker镜像:eclipse-temurin:11.0.19_7-jre-windowsservercore-1809 nacos版本:2.2.0 spring.cloud.alibaba.version:2021.0.1.0

Server environment: Windows server 2019 Use docker version: Docker Desktop 4.21.1 (114176) Use the docker image: eclipse-temurin:11.0.19_7-jre-windowsservercore-1809 Nacos version: 2.2.0 spring.cloud.alibaba.version: 2021.0.1.0

出现问题: image

原因是我在配置文件中使用了中文导致的

我想问一下,我是否有办法将启动时读取nacos配置文件使用的读取yaml方法进行替换或者修改 使得我能够在nacos中保留中文配置

由于是WindowsServerdocker,所以docker镜像中貌似并不能修改系统的字符集

The reason is that I used Chinese in the configuration file

I would like to ask, is there a way for me to replace or modify the method of reading yaml used to read nacos configuration files at startup Allows me to keep the Chinese configuration in nacos

Since it is WindowsServerdocker, it seems that the character set of the system cannot be modified in the docker image

我这边环境是spring boot3 ,spring 6 ,spring cloud alibaba 2003,nacos server 2.3.0-beta
在windows上从,命令行mvn spring-boot:run运行服务,会报这样的异常信息,然而从IDE,例如eclipse却没有这个问题。
不知道这个问题怎么解决?
同时,我本地环境eclipse运行开发的服务,可以正常启动,但是在nacos的服务列表中看不到

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants