Commit d67538716661f8c74f4e00aec5182df7311c568c

Authored by 潘钊
1 parent 2cfcc62b

update...

src/main/java/com/bsth/data/gpsdata_v2/rfid/UploadRfidDataService.java
... ... @@ -8,6 +8,7 @@ import org.slf4j.LoggerFactory;
8 8 import org.springframework.beans.factory.annotation.Autowired;
9 9 import org.springframework.web.bind.annotation.RequestBody;
10 10 import org.springframework.web.bind.annotation.RequestMapping;
  11 +import org.springframework.web.bind.annotation.RequestMethod;
11 12 import org.springframework.web.bind.annotation.RestController;
12 13  
13 14 import java.util.List;
... ... @@ -25,7 +26,7 @@ public class UploadRfidDataService {
25 26  
26 27 Logger logger = LoggerFactory.getLogger(this.getClass());
27 28  
28   - @RequestMapping("inside")
  29 + @RequestMapping(value = "inside", method = RequestMethod.POST)
29 30 public void inside(@RequestBody List<RfidInoutStation> list) {
30 31 logger.info("up rfid: " + JSON.toJSONString(list));
31 32 rfidSignalHandle.handle(list);
... ...