1.關於json數據返回亂碼的解決方法
Spring中解析字符串的轉換器默認編碼是ISO-8859-1,可以在@RequestMapping()的屬性中添加produces,如下:
2.添加了新的maven依賴包,則添加的war包要重新添加,否則會找不到該引用的jar包
3.Artifacts的配置(這個我覺得挺重要的,網上找到這個博客網址覺得寫得很清楚)
https://www.cnblogs.com/deng-cc/p/6416332.html
4.記住我的設置
1.關於json數據返回亂碼的解決方法
Spring中解析字符串的轉換器默認編碼是ISO-8859-1,可以在@RequestMapping()的屬性中添加produces,如下:
2.添加了新的maven依賴包,則添加的war包要重新添加,否則會找不到該引用的jar包
3.Artifacts的配置(這個我覺得挺重要的,網上找到這個博客網址覺得寫得很清楚)
https://www.cnblogs.com/deng-cc/p/6416332.html
4.記住我的設置
首先是pom.xml注入依賴包 <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-
freemarker中shiro常用標籤:<@shiro.guest><@shiro.user> <shiro:hasRole name="admin