08 2021 档案

摘要:token管理类 public class UserTokenManager { //生成TOKEN public static String generateToken(Integer id) { JwtHelper jwtHelper = new JwtHelper(); return jwtH 阅读全文
posted @ 2021-08-25 16:19 啦啦拉扎尔 阅读(137) 评论(0) 推荐(0) 编辑
摘要:比如资源是一张图片,wnd.jpg,资源路径 /opt/pic/wnd.jpg访问地址: http://ip:8080/pic/wnd.jpg通过nginx配置server { listen 8080; server server_pic; location /pic { root /opt; au 阅读全文
posted @ 2021-08-25 15:54 啦啦拉扎尔 阅读(953) 评论(0) 推荐(0) 编辑
摘要:nginx是通过alias设置虚拟目录,在nginx的配置中,alias目录和root目录是有区别的:1)alias指定的目录是准确的,即location匹配访问的path目录下的文件直接是在alias目录下查找的;2)root指定的目录是location匹配访问的path目录的上一级目录,这个pa 阅读全文
posted @ 2021-08-25 15:45 啦啦拉扎尔 阅读(625) 评论(0) 推荐(0) 编辑
摘要:通常的时间监控方式//方法运行开始long start = System.currentTimeMillis();do.something();long end = System.currentTimeMillis();log.info("某业务的耗时:" + start-end);stopWatc 阅读全文
posted @ 2021-08-17 14:08 啦啦拉扎尔 阅读(102) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示