0

I am creating a docker image where a spring boot application is deployed. The API works find locally but when deployed as a image from amazonlinux:2 the API returns ? for Cyrillic characters eg. Request "Городское тестирование для адреса asos". Response : "????????? ???????????? ??? ?????? asos A"

FROM amazonlinux:2 #FROM openjdk:8-jdk-alpine RUN yum install -y java maven

ARG JAR_FILE=target/application-exec.jar COPY ${JAR_FILE} app.jar RUN mkdir /data RUN mkdir /src EXPOSE 8002 ENTRYPOINT ["sh", "-c", "java -Xms4g -Xmx4g -XX:+UseStringDeduplication -jar -Dspring.profiles.active=dev /app.jar"]

Please let me know if anybody solved similar issue.

1

1 Answer 1

0

Try

@RequestMapping(
 value = "/all", 
 method = RequestMethod.GET,
 produces = MediaType.APPLICATION_JSON_UTF8_VALUE

)

Удачи :)

Sign up to request clarification or add additional context in comments.

1 Comment

I tried that as well, but that is not working either. Basically it works well when deployed on Local servers but not on amazonlinux:2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.