一、亂碼
1、打開Tomcat的目錄,找到conf文件夾,一般修改server.xml中的編碼集,改為utf-8即可
2、若server.xml中編碼設置的就是utf-8,可以修改logging.properties文件
找到java.util.logging.ConsoleHandler.encoding = UTF-8,默認的是utf-8,修改為:java.util.logging.ConsoleHandler.encoding = GBK
保存,重新啟動
二、springboot tomcat 緩存
org.apache.catalina.webresources.Cache.getResource 無法將位於[/WEB-INF/classes/templates/]的資源添加到Web應用程序[/b]的緩存中,因為在清除過期緩存條目后可用空間仍不足 - 請考慮增加緩存的最大空間。
org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [**] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache