By signing in, you agree to 古古的後端筆記's terms of service and privacy policy.
古古
2021/07/25
如果在 application.properties 直接寫上中文,則 Spring Boot 在使用 @Value 讀取時會產生中文亂碼
@Value
name=小明
在 application.properties 裡面,將「中文」轉成「Unicode」,即可解決此問題(可使用此網頁進行轉換)
name=\u5c0f\u660e
每週二學習後端技術,和 3300 人一起變強💪