See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| /** | |
| * eg. | |
| * <code> | |
| * // 获取IV偏移量 | |
| * String iv = AESUtils.generateIVAsString(); | |
| * // securityKey一般也定义为16、32位的无特殊字符的字符串, | |
| * String encryptData = AESUtils.encrypt(data, securityKey, AESUtils.getIVFromString(iv)); | |
| * </code> | |
| * AES工具类 | |
| * @author kai.zhang |
| public <T> T fromYAML(InputStream inputStream, Class<T> configType) throws IOException { | |
| String content = resolveEnvParams(new InputStreamReader(inputStream)); | |
| return yamlMapper.readValue(content, configType); | |
| } |
I hereby claim:
To claim this, I am signing this object:
| package com.ruhnn.koc.core.config; | |
| import static com.ruhnn.koc.constant.KocConstant.PAGE_REQUEST_ATTR; | |
| import static com.ruhnn.koc.constant.KocLogLevelConstant.LEVEL0; | |
| import static com.ruhnn.koc.constant.KocLogLevelConstant.LEVEL1; | |
| import static com.ruhnn.koc.constant.KocLogLevelConstant.LEVEL2; | |
| import static com.ruhnn.koc.exception.KocErrorEnum.SYS_ERROR; | |
| import com.ruhnn.base.response.PageResponse; | |
| import com.ruhnn.base.response.Response; |