mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-10-26 10:39:02 +08:00
test: 新增 json 序列化插件的单元测试
This commit is contained in:
@@ -156,6 +156,9 @@ public class SaJsonTemplateForJackson implements SaJsonTemplate {
|
||||
*/
|
||||
@Override
|
||||
public Map<String, Object> jsonToMap(String jsonStr) {
|
||||
if(SaFoxUtil.isEmpty(jsonStr)) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
@SuppressWarnings("unchecked")
|
||||
Map<String, Object> map = mapObjectMapper.readValue(jsonStr, Map.class);
|
||||
|
||||
Reference in New Issue
Block a user