Commit 7b09a483 by lixian7

工具类

parent be72e56d
...@@ -10,14 +10,14 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -10,14 +10,14 @@ import org.springframework.web.bind.annotation.RestController;
/** /**
* 工具 * 工具
* @menu 工具接口 * @menu 工具
* @author lixian * @author lixian
* @description * @description
* @date 2020/6/18 17:57 * @date 2020/6/18 17:57
**/ **/
@Slf4j @Slf4j
@RestController @RestController
@RequestMapping( "/test" ) @RequestMapping( "/tool" )
public class ToolController { public class ToolController {
@Autowired @Autowired
SignKeyConfigBean signKeyConfigBean; SignKeyConfigBean signKeyConfigBean;
...@@ -32,4 +32,12 @@ public class ToolController { ...@@ -32,4 +32,12 @@ public class ToolController {
return EncryptStringAes.encryptAes(plain, signKeyConfigBean.getKey()); return EncryptStringAes.encryptAes(plain, signKeyConfigBean.getKey());
} }
/**
* 获取时间戳
* @return
*/
@GetMapping( value = "timestamp" )
public String timestamp() {
return String.valueOf(System.currentTimeMillis());
}
} }
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