Commit 8756264716b49317951bbc0e51ff82a38992739d
1 parent
d6753871
update...
Showing
4 changed files
with
10 additions
and
3 deletions
src/main/java/com/bsth/common/Constants.java
| ... | ... | @@ -33,6 +33,8 @@ public class Constants { |
| 33 | 33 | |
| 34 | 34 | //车载网关上行接口 |
| 35 | 35 | public static final String UPSTREAM_URL = "/control/upstream"; |
| 36 | + //rfid 上传入口 | |
| 37 | + public static final String UP_RFID_URL = "/rfid/**"; | |
| 36 | 38 | |
| 37 | 39 | public static final String SESSION_USERNAME = "sessionUserName"; |
| 38 | 40 | public static final String COMPANY_AUTHORITYS = "cmyAuths"; | ... | ... |
src/main/java/com/bsth/data/gpsdata_v2/rfid/UploadRfidDataService.java
| ... | ... | @@ -18,7 +18,7 @@ import java.util.List; |
| 18 | 18 | * Created by panzhao on 2017/11/22. |
| 19 | 19 | */ |
| 20 | 20 | @RestController |
| 21 | -@RequestMapping("/up/rfid") | |
| 21 | +@RequestMapping("/rfid") | |
| 22 | 22 | public class UploadRfidDataService { |
| 23 | 23 | |
| 24 | 24 | @Autowired |
| ... | ... | @@ -31,4 +31,9 @@ public class UploadRfidDataService { |
| 31 | 31 | logger.info("up rfid: " + JSON.toJSONString(list)); |
| 32 | 32 | rfidSignalHandle.handle(list); |
| 33 | 33 | } |
| 34 | + | |
| 35 | + @RequestMapping(value = "test") | |
| 36 | + public int test() { | |
| 37 | + return 1; | |
| 38 | + } | |
| 34 | 39 | } |
| 35 | 40 | \ No newline at end of file | ... | ... |
src/main/java/com/bsth/filter/BaseFilter.java
| ... | ... | @@ -17,7 +17,7 @@ public abstract class BaseFilter implements Filter { |
| 17 | 17 | * 白名单 |
| 18 | 18 | */ |
| 19 | 19 | private String[] whiteListURLs = { Constants.LOGIN_PAGE,Constants.CAPTCHA, Constants.SERVICE_INTERFACE, |
| 20 | - Constants.ASSETS_URL, Constants.FAVICON_URL, Constants.METRONIC_URL, Constants.LOGIN, Constants.LOGIN_FAILURE, Constants.UPSTREAM_URL, Constants.XD_CHILD_PAGES, Constants.XD_REAL_GPS }; | |
| 20 | + Constants.ASSETS_URL, Constants.FAVICON_URL, Constants.METRONIC_URL, Constants.LOGIN, Constants.LOGIN_FAILURE, Constants.UPSTREAM_URL, Constants.XD_CHILD_PAGES, Constants.XD_REAL_GPS, Constants.UP_RFID_URL }; | |
| 21 | 21 | |
| 22 | 22 | @Override |
| 23 | 23 | public void destroy() { | ... | ... |
src/main/java/com/bsth/security/filter/LoginInterceptor.java
| ... | ... | @@ -33,7 +33,7 @@ public class LoginInterceptor implements Filter { |
| 33 | 33 | * 相比于 BaseFilter,此处对线调GPS请求进行了拦截验证 |
| 34 | 34 | */ |
| 35 | 35 | private String[] whiteListURLs = { Constants.LOGIN_PAGE,Constants.CAPTCHA, Constants.SERVICE_INTERFACE, |
| 36 | - Constants.ASSETS_URL, Constants.FAVICON_URL, Constants.METRONIC_URL, Constants.LOGIN, Constants.LOGIN_FAILURE, Constants.UPSTREAM_URL, Constants.XD_CHILD_PAGES }; | |
| 36 | + Constants.ASSETS_URL, Constants.FAVICON_URL, Constants.METRONIC_URL, Constants.LOGIN, Constants.LOGIN_FAILURE, Constants.UPSTREAM_URL, Constants.XD_CHILD_PAGES, Constants.UP_RFID_URL }; | |
| 37 | 37 | |
| 38 | 38 | |
| 39 | 39 | @Override | ... | ... |