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