From 5c962b28e6273730838902ad2df8bf9bdbf7bdfc Mon Sep 17 00:00:00 2001 From: fang <2627729817@qq.com> Date: Wed, 12 Mar 2025 16:08:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E5=95=86=E6=88=B7=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E5=88=B0redis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx-1.18.0/logs/access.log | 110 ++++++++++++++++++ nginx-1.18.0/logs/error.log | 34 ++++++ .../com/hmdp/controller/ShopController.java | 8 +- .../hmdp/controller/ShopTypeController.java | 7 +- .../java/com/hmdp/service/IShopService.java | 2 + .../com/hmdp/service/IShopTypeService.java | 2 + .../hmdp/service/impl/ShopServiceImpl.java | 40 ++++++- .../service/impl/ShopTypeServiceImpl.java | 30 ++++- 8 files changed, 223 insertions(+), 10 deletions(-) diff --git a/nginx-1.18.0/logs/access.log b/nginx-1.18.0/logs/access.log index 0ede3f1..edb9b67 100644 --- a/nginx-1.18.0/logs/access.log +++ b/nginx-1.18.0/logs/access.log @@ -14743,3 +14743,113 @@ 127.0.0.1 - - [05/Mar/2025:20:49:38 +0800] "GET /api/shop-type/list HTTP/1.1" 200 664 "http://127.0.0.1:8080/" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" 127.0.0.1 - - [05/Mar/2025:20:49:38 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" 127.0.0.1 - - [05/Mar/2025:20:49:38 +0800] "GET /api/blog/hot?current=1 HTTP/1.1" 200 6065 "http://127.0.0.1:8080/" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:37:19 +0800] "GET / HTTP/1.1" 200 5238 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:37:21 +0800] "GET /api/shop-type/list HTTP/1.1" 200 57 "http://127.0.0.1:8080/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:37:21 +0800] "GET /api/blog/hot?current=1 HTTP/1.1" 499 0 "http://127.0.0.1:8080/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:37:22 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:37:30 +0800] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:37:30 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:37:31 +0800] "GET /api/shop-type/list HTTP/1.1" 200 57 "http://127.0.0.1:8080/" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:37:32 +0800] "GET /api/blog/hot?current=1 HTTP/1.1" 499 0 "http://127.0.0.1:8080/" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:38:57 +0800] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:38:58 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:38:59 +0800] "GET /api/shop-type/list HTTP/1.1" 200 57 "http://127.0.0.1:8080/" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:39:00 +0800] "GET /api/blog/hot?current=1 HTTP/1.1" 499 0 "http://127.0.0.1:8080/" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:39:13 +0800] "GET /api/user/me HTTP/1.1" 401 0 "http://127.0.0.1:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:39:13 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:39:13 +0800] "GET /login.html HTTP/1.1" 304 0 "http://127.0.0.1:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:39:13 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:41:27 +0800] "GET /login.html HTTP/1.1" 304 0 "http://127.0.0.1:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:41:27 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:41:38 +0800] "POST /api/user/code?phone=15226354789 HTTP/1.1" 499 0 "http://127.0.0.1:8080/login.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:41:49 +0800] "POST /api/user/login HTTP/1.1" 200 69 "http://127.0.0.1:8080/login.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:41:49 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:41:49 +0800] "GET /api/shop-type/list HTTP/1.1" 200 664 "http://127.0.0.1:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:41:49 +0800] "GET /api/blog/hot?current=1 HTTP/1.1" 200 6065 "http://127.0.0.1:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:42:12 +0800] "GET /blog-edit.html HTTP/1.1" 200 5271 "http://127.0.0.1:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:42:12 +0800] "GET /css/blog-edit.css HTTP/1.1" 200 3214 "http://127.0.0.1:8080/blog-edit.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:42:12 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:42:12 +0800] "GET /api/user/me HTTP/1.1" 200 85 "http://127.0.0.1:8080/blog-edit.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:42:12 +0800] "GET /api/shop/of/name?name= HTTP/1.1" 200 6053 "http://127.0.0.1:8080/blog-edit.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:42:14 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:42:19 +0800] "GET /blog-detail.html?id=4 HTTP/1.1" 200 14912 "http://127.0.0.1:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:42:19 +0800] "GET /css/blog-detail.css HTTP/1.1" 200 4525 "http://127.0.0.1:8080/blog-detail.html?id=4" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:42:19 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:42:19 +0800] "GET /api/blog/4 HTTP/1.1" 404 119 "http://127.0.0.1:8080/blog-detail.html?id=4" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:42:23 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:42:24 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:42:24 +0800] "GET /api/user/me HTTP/1.1" 200 85 "http://127.0.0.1:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:42:24 +0800] "GET /api/user/info/1012 HTTP/1.1" 200 27 "http://127.0.0.1:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:42:24 +0800] "GET /api/blog/of/me HTTP/1.1" 200 37 "http://127.0.0.1:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:42:27 +0800] "GET /api/blog/of/follow?&lastId=1741225347114 HTTP/1.1" 404 127 "http://127.0.0.1:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:43:05 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:43:05 +0800] "GET /api/shop-type/list HTTP/1.1" 200 664 "http://127.0.0.1:8080/" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:43:05 +0800] "GET /api/blog/hot?current=1 HTTP/1.1" 200 6065 "http://127.0.0.1:8080/" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:43:06 +0800] "GET /shop-list.html?type=1&name=%E7%BE%8E%E9%A3%9F HTTP/1.1" 200 5071 "http://127.0.0.1:8080/" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:43:06 +0800] "GET /css/shop-list.css HTTP/1.1" 200 1830 "http://127.0.0.1:8080/shop-list.html?type=1&name=%E7%BE%8E%E9%A3%9F" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:43:07 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:43:07 +0800] "GET /api/shop-type/list HTTP/1.1" 200 664 "http://127.0.0.1:8080/shop-list.html?type=1&name=%E7%BE%8E%E9%A3%9F" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:43:07 +0800] "GET /api/shop/of/type?&typeId=1¤t=1&x=120.149993&y=30.334229 HTTP/1.1" 200 3197 "http://127.0.0.1:8080/shop-list.html?type=1&name=%E7%BE%8E%E9%A3%9F" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:43:07 +0800] "GET /shop-detail.html?id=1 HTTP/1.1" 200 8700 "http://127.0.0.1:8080/shop-list.html?type=1&name=%E7%BE%8E%E9%A3%9F" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:43:07 +0800] "GET /css/shop-detail.css HTTP/1.1" 200 5478 "http://127.0.0.1:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:43:07 +0800] "GET /imgs/bd.png HTTP/1.1" 200 11247 "http://127.0.0.1:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:43:07 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:43:07 +0800] "GET /api/shop/1 HTTP/1.1" 200 713 "http://127.0.0.1:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:43:07 +0800] "GET /api/voucher/list/1 HTTP/1.1" 200 260 "http://127.0.0.1:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:55:54 +0800] "GET /shop-detail.html?id=1 HTTP/1.1" 304 0 "http://127.0.0.1:8080/shop-list.html?type=1&name=%E7%BE%8E%E9%A3%9F" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:55:54 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:55:56 +0800] "GET /api/shop/1 HTTP/1.1" 200 713 "http://127.0.0.1:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:55:56 +0800] "GET /api/voucher/list/1 HTTP/1.1" 200 260 "http://127.0.0.1:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:56:05 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:56:06 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:56:06 +0800] "GET /api/voucher/list/1 HTTP/1.1" 200 260 "http://127.0.0.1:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:56:06 +0800] "GET /api/shop/1 HTTP/1.1" 200 713 "http://127.0.0.1:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:56:10 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:56:12 +0800] "GET /shop-detail.html?id=2 HTTP/1.1" 200 8700 "http://127.0.0.1:8080/shop-list.html?type=1&name=%E7%BE%8E%E9%A3%9F" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:56:12 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:56:12 +0800] "GET /api/voucher/list/2 HTTP/1.1" 200 37 "http://127.0.0.1:8080/shop-detail.html?id=2" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:56:12 +0800] "GET /api/shop/2 HTTP/1.1" 200 705 "http://127.0.0.1:8080/shop-detail.html?id=2" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:56:54 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:56:56 +0800] "GET /api/voucher/list/1 HTTP/1.1" 200 260 "http://127.0.0.1:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:56:56 +0800] "GET /api/shop/1 HTTP/1.1" 200 713 "http://127.0.0.1:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:56:56 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:57:03 +0800] "GET /shop-detail.html?id=1 HTTP/1.1" 304 0 "http://127.0.0.1:8080/shop-list.html?type=1&name=%E7%BE%8E%E9%A3%9F" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:57:03 +0800] "GET /api/shop/1 HTTP/1.1" 200 713 "http://127.0.0.1:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:57:03 +0800] "GET /api/voucher/list/1 HTTP/1.1" 200 260 "http://127.0.0.1:8080/shop-detail.html?id=1" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:09:57:03 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:10:11:01 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:10:11:02 +0800] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:10:11:02 +0800] "GET /api/shop-type/list HTTP/1.1" 499 0 "http://127.0.0.1:8080/" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:10:11:02 +0800] "GET /api/blog/hot?current=1 HTTP/1.1" 499 0 "http://127.0.0.1:8080/" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:10:11:03 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:10:11:05 +0800] "GET /api/blog/hot?current=1 HTTP/1.1" 200 6065 "http://127.0.0.1:8080/" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:10:11:05 +0800] "GET /api/shop-type/list HTTP/1.1" 200 664 "http://127.0.0.1:8080/" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:10:11:05 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:10:11:05 +0800] "GET /api/shop-type/list HTTP/1.1" 200 664 "http://127.0.0.1:8080/" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:10:11:05 +0800] "GET /api/blog/hot?current=1 HTTP/1.1" 200 6065 "http://127.0.0.1:8080/" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:10:11:18 +0800] "GET /api/user/me HTTP/1.1" 200 85 "http://127.0.0.1:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:10:11:18 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:10:11:18 +0800] "GET /api/user/info/1012 HTTP/1.1" 200 27 "http://127.0.0.1:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:10:11:18 +0800] "GET /api/blog/of/me HTTP/1.1" 200 37 "http://127.0.0.1:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:10:11:19 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:10:11:19 +0800] "GET /api/shop-type/list HTTP/1.1" 200 664 "http://127.0.0.1:8080/" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:10:11:19 +0800] "GET /api/blog/hot?current=1 HTTP/1.1" 200 6065 "http://127.0.0.1:8080/" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:14:28:58 +0800] "GET /api/blog/hot?current=1 HTTP/1.1" 200 6065 "http://127.0.0.1:8080/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:14:28:59 +0800] "GET /api/shop-type/list HTTP/1.1" 200 664 "http://127.0.0.1:8080/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:14:29:04 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:14:42:00 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:14:42:00 +0800] "GET /api/user/me HTTP/1.1" 401 0 "http://127.0.0.1:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:14:42:00 +0800] "GET /login.html HTTP/1.1" 304 0 "http://127.0.0.1:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:14:42:00 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:14:42:05 +0800] "POST /api/user/code?phone=15226354789 HTTP/1.1" 499 0 "http://127.0.0.1:8080/login.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:14:42:15 +0800] "POST /api/user/login HTTP/1.1" 200 69 "http://127.0.0.1:8080/login.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:14:42:15 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:14:42:15 +0800] "GET /api/shop-type/list HTTP/1.1" 200 664 "http://127.0.0.1:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:14:42:15 +0800] "GET /api/blog/hot?current=1 HTTP/1.1" 200 6065 "http://127.0.0.1:8080/index.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:14:42:22 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:14:42:22 +0800] "GET /api/user/me HTTP/1.1" 200 85 "http://127.0.0.1:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:14:42:22 +0800] "GET /api/user/info/1012 HTTP/1.1" 200 27 "http://127.0.0.1:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:14:42:22 +0800] "GET /api/blog/of/me HTTP/1.1" 200 37 "http://127.0.0.1:8080/info.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:14:42:25 +0800] "GET /api/shop-type/list HTTP/1.1" 200 664 "http://127.0.0.1:8080/" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:14:42:25 +0800] "GET /js/axios.min.map HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" +127.0.0.1 - - [06/Mar/2025:14:42:25 +0800] "GET /api/blog/hot?current=1 HTTP/1.1" 200 6065 "http://127.0.0.1:8080/" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/133.0.0.0" diff --git a/nginx-1.18.0/logs/error.log b/nginx-1.18.0/logs/error.log index 8a34eae..51c05a9 100644 --- a/nginx-1.18.0/logs/error.log +++ b/nginx-1.18.0/logs/error.log @@ -2797,3 +2797,37 @@ 2025/03/05 20:48:20 [error] 12716#24776: *135 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" 2025/03/05 20:49:21 [error] 12716#24776: *136 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" 2025/03/05 20:49:38 [error] 12716#24776: *136 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 09:37:22 [error] 10720#23156: *1 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 09:37:30 [error] 10720#23156: *8 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 09:38:58 [error] 10720#23156: *9 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 09:39:13 [error] 10720#23156: *9 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 09:39:13 [error] 10720#23156: *9 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 09:41:27 [error] 10720#23156: *15 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 09:41:49 [error] 10720#23156: *16 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 09:42:12 [error] 10720#23156: *24 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 09:42:14 [error] 10720#23156: *16 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 09:42:19 [error] 10720#23156: *16 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 09:42:23 [error] 10720#23156: *16 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 09:42:24 [error] 10720#23156: *19 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 09:43:05 [error] 10720#23156: *33 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 09:43:07 [error] 10720#23156: *33 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 09:43:07 [error] 10720#23156: *33 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 09:55:54 [error] 10720#23156: *38 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 09:56:05 [error] 10720#23156: *39 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 09:56:06 [error] 10720#23156: *44 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 09:56:10 [error] 10720#23156: *39 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 09:56:12 [error] 10720#23156: *44 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 09:56:54 [error] 10720#23156: *44 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 09:56:56 [error] 10720#23156: *47 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 09:57:03 [error] 10720#23156: *44 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 10:11:01 [error] 10720#23156: *56 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 10:11:03 [error] 10720#23156: *56 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 10:11:05 [error] 10720#23156: *56 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 10:11:18 [error] 10720#23156: *65 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 10:11:19 [error] 10720#23156: *65 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 14:29:04 [error] 10720#23156: *68 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 14:42:00 [error] 10720#23156: *72 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 14:42:00 [error] 10720#23156: *72 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 14:42:15 [error] 10720#23156: *80 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 14:42:22 [error] 10720#23156: *73 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" +2025/03/06 14:42:25 [error] 10720#23156: *77 CreateFile() "D:\Program Files\java_program\hm-dianping\nginx-1.18.0/html/hmdp/js/axios.min.map" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /js/axios.min.map HTTP/1.1", host: "127.0.0.1:8080" diff --git a/src/main/java/com/hmdp/controller/ShopController.java b/src/main/java/com/hmdp/controller/ShopController.java index cf2c32b..4a4158f 100644 --- a/src/main/java/com/hmdp/controller/ShopController.java +++ b/src/main/java/com/hmdp/controller/ShopController.java @@ -33,8 +33,8 @@ public class ShopController { */ @GetMapping("/{id}") public Result queryShopById(@PathVariable("id") Long id) { - return Result.ok(shopService.getById(id)); -// return shopService.queryById(id); +// return Result.ok(shopService.getById(id)); + return shopService.queryById(id); } /** @@ -58,8 +58,8 @@ public class ShopController { @PutMapping public Result updateShop(@RequestBody Shop shop) { // 写入数据库 - shopService.updateById(shop); - return Result.ok(); + + return shopService.updateShopById(shop); } /** diff --git a/src/main/java/com/hmdp/controller/ShopTypeController.java b/src/main/java/com/hmdp/controller/ShopTypeController.java index 3f34f6c..7addf13 100644 --- a/src/main/java/com/hmdp/controller/ShopTypeController.java +++ b/src/main/java/com/hmdp/controller/ShopTypeController.java @@ -27,8 +27,9 @@ public class ShopTypeController { @GetMapping("list") public Result queryTypeList() { - List typeList = typeService - .query().orderByAsc("sort").list(); - return Result.ok(typeList); +// List typeList = typeService +// .query().orderByAsc("sort").list(); +// return Result.ok(typeList); + return typeService.queryTypeList(); } } diff --git a/src/main/java/com/hmdp/service/IShopService.java b/src/main/java/com/hmdp/service/IShopService.java index 97c11fa..6dd6bb7 100644 --- a/src/main/java/com/hmdp/service/IShopService.java +++ b/src/main/java/com/hmdp/service/IShopService.java @@ -15,4 +15,6 @@ import com.baomidou.mybatisplus.extension.service.IService; public interface IShopService extends IService { Result queryById(Long id); + + Result updateShopById(Shop shop); } diff --git a/src/main/java/com/hmdp/service/IShopTypeService.java b/src/main/java/com/hmdp/service/IShopTypeService.java index 131626f..a4e5183 100644 --- a/src/main/java/com/hmdp/service/IShopTypeService.java +++ b/src/main/java/com/hmdp/service/IShopTypeService.java @@ -1,5 +1,6 @@ package com.hmdp.service; +import com.hmdp.dto.Result; import com.hmdp.entity.ShopType; import com.baomidou.mybatisplus.extension.service.IService; @@ -13,4 +14,5 @@ import com.baomidou.mybatisplus.extension.service.IService; */ public interface IShopTypeService extends IService { + Result queryTypeList(); } diff --git a/src/main/java/com/hmdp/service/impl/ShopServiceImpl.java b/src/main/java/com/hmdp/service/impl/ShopServiceImpl.java index e05a698..31d0f47 100644 --- a/src/main/java/com/hmdp/service/impl/ShopServiceImpl.java +++ b/src/main/java/com/hmdp/service/impl/ShopServiceImpl.java @@ -1,5 +1,7 @@ package com.hmdp.service.impl; +import cn.hutool.core.util.StrUtil; +import cn.hutool.json.JSONUtil; import com.hmdp.dto.Result; import com.hmdp.entity.Shop; import com.hmdp.mapper.ShopMapper; @@ -7,9 +9,15 @@ import com.hmdp.service.IShopService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; import javax.annotation.Resource; +import java.util.concurrent.TimeUnit; + +import static com.hmdp.utils.RedisConstants.CACHE_SHOP_KEY; +import static com.hmdp.utils.RedisConstants.CACHE_SHOP_TTL; + /** *

* 服务实现类 @@ -26,7 +34,35 @@ public class ShopServiceImpl extends ServiceImpl implements IS public Result queryById(Long id) { // 使用redis缓存 // 查询缓存 - stringRedisTemplate.opsForValue().get("cache:shop:" + id); - return null; + String cacheShop = stringRedisTemplate.opsForValue().get(CACHE_SHOP_KEY + id); + // 判断是否存在 + Shop shop = new Shop(); + if(StrUtil.isNotBlank(cacheShop)){ + // 存在直接返回 + shop = JSONUtil.toBean(cacheShop, Shop.class); + return Result.ok(shop); + } + // 不存在,查询数据库 + shop = getById(id); + if(shop == null){ + // 数据库不存在,返回错误 + return Result.fail("店铺不存在"); + } + stringRedisTemplate.opsForValue().set(CACHE_SHOP_KEY + id, JSONUtil.toJsonStr(shop),CACHE_SHOP_TTL, TimeUnit.MINUTES); + return Result.ok(shop); + } + + @Override + @Transactional // 保证原子性 + public Result updateShopById(Shop shop) { + Long shopId = shop.getId(); + if(shopId == null){ + return Result.fail("店铺id不能为空"); + } + // 更新数据库 + updateById(shop); + // 删除缓存 + stringRedisTemplate.delete(CACHE_SHOP_KEY + shopId); + return Result.ok(); } } diff --git a/src/main/java/com/hmdp/service/impl/ShopTypeServiceImpl.java b/src/main/java/com/hmdp/service/impl/ShopTypeServiceImpl.java index 811b89a..68628f3 100644 --- a/src/main/java/com/hmdp/service/impl/ShopTypeServiceImpl.java +++ b/src/main/java/com/hmdp/service/impl/ShopTypeServiceImpl.java @@ -1,11 +1,22 @@ package com.hmdp.service.impl; +import cn.hutool.core.util.StrUtil; +import cn.hutool.json.JSONUtil; +import com.hmdp.dto.Result; import com.hmdp.entity.ShopType; import com.hmdp.mapper.ShopTypeMapper; import com.hmdp.service.IShopTypeService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.hmdp.utils.RedisConstants; +import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.stereotype.Service; +import javax.annotation.Resource; +import java.util.List; +import java.util.concurrent.TimeUnit; + +import static com.hmdp.utils.RedisConstants.CACHE_SHOP_TTL; + /** *

* 服务实现类 @@ -16,5 +27,22 @@ import org.springframework.stereotype.Service; */ @Service public class ShopTypeServiceImpl extends ServiceImpl implements IShopTypeService { - + @Resource + private StringRedisTemplate stringRedisTemplate; + @Override + public Result queryTypeList() { + // list类型的数据怎么处理 + String cacheShop = stringRedisTemplate.opsForValue().get(RedisConstants.CACHE_SHOP_KEY + "list"); + if(StrUtil.isNotBlank(cacheShop)){ + // 将string转成list + return Result.ok(JSONUtil.toList(cacheShop, ShopType.class)); + } + // 如果为空去数据库查 + List sortShop = query().orderByAsc("sort").list(); + if(sortShop == null){ + return Result.fail("查询失败"); + } + stringRedisTemplate.opsForValue().set(RedisConstants.CACHE_SHOP_KEY + "list", JSONUtil.toJsonStr(sortShop),CACHE_SHOP_TTL, TimeUnit.MINUTES); + return Result.ok(sortShop); + } }