From 16d456130d8b4a4490e93ac30b58e887dc377e24 Mon Sep 17 00:00:00 2001 From: Boom <654612@qq.com> Date: Tue, 25 Feb 2025 18:27:15 +0800 Subject: [PATCH] :fire: init --- .../top/naccl/dwz/controller/IndexController.java | 2 +- src/main/resources/application-dev.properties | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/top/naccl/dwz/controller/IndexController.java b/src/main/java/top/naccl/dwz/controller/IndexController.java index 3f9f014..30a37c8 100644 --- a/src/main/java/top/naccl/dwz/controller/IndexController.java +++ b/src/main/java/top/naccl/dwz/controller/IndexController.java @@ -36,7 +36,7 @@ public class IndexController { return "index"; } - @AccessLimit(seconds = 10, maxCount = 1, msg = "10秒内只能生成一次短链接") + // @AccessLimit(seconds = 10, maxCount = 1, msg = "10秒内只能生成一次短链接") @PostMapping("/generate") @ResponseBody public R generateShortURL(@RequestBody GenerateCmd cmd) { diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties index 0a80ba8..c9e3f2d 100644 --- a/src/main/resources/application-dev.properties +++ b/src/main/resources/application-dev.properties @@ -1,15 +1,15 @@ server.port=8060 -server.host=http://localhost:8060/ +server.host=http://localhost1:8060/ spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver -spring.datasource.url=jdbc:mysql://localhost:3306/dwz?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8 +spring.datasource.url=jdbc:mysql://192.168.10.200:3306/dwz?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8 spring.datasource.username=root spring.datasource.password=root -spring.redis.host=192.168.17.132 -spring.redis.password=123456 +spring.redis.host=192.168.10.200 +spring.redis.password= spring.redis.port=6379 -spring.redis.database=1 +spring.redis.database=15 spring.redis.timeout=10000ms mybatis.mapper-locations=classpath:mapper/*.xml @@ -17,4 +17,4 @@ mybatis.configuration.map-underscore-to-camel-case=true logging.level.root=info logging.level.top.naccl.dwz=debug -logging.file.name=./log/dwz \ No newline at end of file +logging.file.name=./log/dwz