# affect-inoutput **Repository Path**: chmodu/affect-inoutput ## Basic Information - **Project Name**: affect-inoutput - **Description**: 服务端对输入输出参数进行处理 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2019-12-19 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 简介

服务端对输入输出参数进行处理

目前在affect-inoutput项目中实现参数解密和返回加密

下一步使更通用,自定义输入输出的处理

# 用法 1. 将源码方法可以扫描的包中,修改解密和加密方式 2. 在Controller方法上使用注解 ```java @RestController @RequestMapping("/test") //@DecryptRequest @EncryptResponse public class TestController { @Autowired @Qualifier("rrCrypto") private Crypto crypto; @DecryptRequest(false) @EncryptResponse(false) @RequestMapping(value = "/enc" , method = RequestMethod.POST) public String enc(@RequestBody String body){ return crypto.encrypt(body); } } ```