martin 3 년 전
부모
커밋
8c9c3384ec
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      simulation-resource-common/src/main/java/com/css/simulation/resource/common/controller/RedisController.java

+ 3 - 3
simulation-resource-common/src/main/java/com/css/simulation/resource/common/controller/RedisController.java

@@ -71,7 +71,7 @@ public class RedisController {
 
     @PostMapping("/getList")
     public ResponseBodyVO<Map<String,String>> getList(@RequestBody List<String> keyList) {
-        Map map = new HashMap();
+        Map<String,String> map = new HashMap<>();
         if(keyList != null && keyList.size() > 0){
             for (String key : keyList) {
                 String value = redisTemplate.opsForValue().get(key);
@@ -83,7 +83,7 @@ public class RedisController {
 
     @PostMapping("/getDictLists")
     public ResponseBodyVO<Map<String,String>> getDictLists(@RequestBody List<String> keyList) {
-        Map map = new HashMap();
+        Map<String,String> map = new HashMap<>();
         if(keyList != null && keyList.size() > 0){
             for (String key : keyList) {
                 String value = redisTemplate.opsForValue().get(DictConstants.BASE_KEY + DictConstants.LIST_KEY + key.toUpperCase());
@@ -95,7 +95,7 @@ public class RedisController {
 
     @PostMapping("/getDictMaps")
     public ResponseBodyVO<Map<String,String>> getDictMaps(@RequestBody List<String> keyList) {
-        Map map = new HashMap();
+        Map<String,String> map = new HashMap<>();
         if(keyList != null && keyList.size() > 0){
             for (String key : keyList) {
                 String value = redisTemplate.opsForValue().get(DictConstants.BASE_KEY + DictConstants.MAP_KEY + key.toUpperCase());