junekeunsong 4 years ago
parent
commit
6ea6c22b8b

+ 2 - 1
src/main/java/com/lemon/lifecenter/controller/RestApiController.java

@@ -8,6 +8,7 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.bind.annotation.RequestParam;
 import org.springframework.web.bind.annotation.RestController;
 
@@ -22,7 +23,7 @@ public class RestApiController {
     @Autowired
     private RestApiService restApiService;
     
-    @RequestMapping("/mobile/getAppVersion")
+    @RequestMapping(value="/mobile/getAppVersion", method = RequestMethod.POST)
     public ArrayList<HashMap<String, String>> appVersion(@RequestParam(value="deviceType", required=false, defaultValue="") String deviceType) {
         ArrayList<HashMap<String, String>> result = new ArrayList<>();
         HashMap<String, String> data = new HashMap<String, String>();