spring讀取配置文件中文亂碼問題

idea首先打開setting 這幾個地方設置之後如果還是沒有反應,還需要設置   @PropertySource(value = "classpath:test.properties",encoding = "UTF-8") 在此註解上添加編碼解決問題。
相關文章
相關標籤/搜索