Commit 7b09a483 by lixian7

工具类

parent be72e56d
......@@ -10,14 +10,14 @@ import org.springframework.web.bind.annotation.RestController;
/**
* 工具
* @menu 工具接口
* @menu 工具
* @author lixian
* @description
* @date 2020/6/18 17:57
**/
@Slf4j
@RestController
@RequestMapping( "/test" )
@RequestMapping( "/tool" )
public class ToolController {
@Autowired
SignKeyConfigBean signKeyConfigBean;
......@@ -32,4 +32,12 @@ public class ToolController {
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