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); } }