WANG hace 5 años
padre
commit
fd5f680a57

+ 2 - 2
src/main/java/cn/com/qmth/examcloud/web/cache/CacheCloudServiceProvider.java

@@ -2,9 +2,9 @@ package cn.com.qmth.examcloud.web.cache;
 
 import java.util.Map;
 
+import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.bind.annotation.RestController;
 
 import com.google.common.collect.Maps;
@@ -36,7 +36,7 @@ public class CacheCloudServiceProvider implements CloudService {
 
 	private static Map<String, ObjectCache<?>> map = Maps.newConcurrentMap();
 
-	@RequestMapping(value = "refresh", method = RequestMethod.POST)
+	@PostMapping("refresh")
 	public String refresh(@RequestBody RefreshCacheReq req) {
 
 		String className = req.getClassName();