Skip to content

배포 서버에서 File Encoding UTF-8을 인식하지 못해 Spring Application이 정상적으로 동작하지 않는 현상  #9

@daily1313

Description

@daily1313

Summary

  • local 환경에서는 Intellij File Encoding : UTF-8로 설정해서 잘 구동되었지만, 운영환경에서는 이를 인식하지 못하고 한글깨짐 현상 발생

Describe

error-log

  • 다음과 같이 애플리케이션 구동 시, allergy.properties 값을 인식하지 못해 Error 발생

To do

  • AllergyProperties.class의 @propertysource Annotation을 다음과 같이 수정하여 해결

@PropertySource(value = "classpath:allergy.properties", encoding = "UTF-8")

Etc

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions