【SpringBoot2】讀取配置application.properties文件亂碼問題解決

修改方式如下:   一、applicaiton.properties添加下面配置 # 避免中文亂碼 spring.http.encoding.enabled=true 二、Intellij ——>file——>settings   三、安全起見刪除舊的配置文件 複製application.properties的內容並保存到一個臨時文本中,刪除原始application.properties文件;在
相關文章
相關標籤/搜索