API接口加密,服務端對輸入輸出參數進行加密處理,使用swagger-bootstrap-ui開發接口文檔。
項目github地址html
@Log4j2 @RestController @Api(tags = "TestController", description = "測試") @RequestMapping("/model") @EncryptResponse public class TestController { @DecryptRequest @ApiOperation("test") @RequestMapping(value = "/test", method = RequestMethod.POST) public CommonResult<Category> test(@RequestBody Category category) { log.info("分類名稱" + category.getCategoryName()); return CommonResult.success(category); } }