setProperties方法讀取xml的值亂碼
@Override public?void?setProperties(Properties?properties)?{ ???this.test?=?properties.getProperty("test");//這里獲取的值,打印出來亂碼 }
@Override public?void?setProperties(Properties?properties)?{ ???this.test?=?properties.getProperty("test");//這里獲取的值,打印出來亂碼 }
2019-10-28
舉報
2019-12-19
這個是因為Configuration.xml的編碼格式是UTF-8,而攔截器的頁面默認為GBK的