Commit 2f0a07ca by lixian7

测试

parent a1c9171f
package com.hikcreate.edl.pub.web.mobile.api.controller;
import com.hikcreate.common.sdk.response.apiparam.Response;
import com.hikcreate.common.sdk.response.apiparam.ResponseGenerator;
import com.hikcreate.edl.common.sdk.util.EncryptStringAes;
import com.hikcreate.edl.pub.web.mobile.infra.core.annotatiion.BodyDecryptAnnotation;
import com.hikcreate.edl.pub.web.mobile.infra.core.annotatiion.HeaderDecryptAnnotation;
import com.hikcreate.edl.pub.web.mobile.infra.core.annotatiion.ResponseEncryptAnnotation;
import com.hikcreate.edl.pub.web.mobile.infra.core.configbean.SignKeyConfigBean;
import com.hikcreate.edl.pub.web.mobile.infra.model.param.response.TestRes;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author lixian
......@@ -19,14 +15,14 @@ import org.springframework.web.bind.annotation.*;
**/
@Slf4j
@RestController
@RequestMapping("/test")
@RequestMapping( "/test" )
public class TestController {
@Autowired
SignKeyConfigBean signKeyConfigBean;
@GetMapping(value = "encrypt")
public String encrypt( String plain) {
return EncryptStringAes.encryptAes(plain, signKeyConfigBean.getKey());
@GetMapping( value = "encrypt" )
public String encrypt( String plain ) {
return EncryptStringAes.encryptAes(plain, signKeyConfigBean.getKey());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment