From 98e4775437783d300528c002ee45b055c788fb61 Mon Sep 17 00:00:00 2001 From: typ Date: Tue, 18 Oct 2022 00:01:45 +0800 Subject: [PATCH] 刷新关闭数据不新增bug修复 --- src/main/java/com/subsidy/common/interceptor/AuthenticationInterceptor.java | 16 ++++++++-------- src/main/resources/application-dev.properties | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/subsidy/common/interceptor/AuthenticationInterceptor.java b/src/main/java/com/subsidy/common/interceptor/AuthenticationInterceptor.java index ae4d248..a86e689 100644 --- a/src/main/java/com/subsidy/common/interceptor/AuthenticationInterceptor.java +++ b/src/main/java/com/subsidy/common/interceptor/AuthenticationInterceptor.java @@ -60,14 +60,14 @@ public class AuthenticationInterceptor implements HandlerInterceptor { HandlerMethod handlerMethod = (HandlerMethod) handler; Method method = handlerMethod.getMethod(); - TimeRequired timeRequired = method.getAnnotation(TimeRequired.class); - if (timeRequired !=null){ - Calendar calendar = Calendar.getInstance(); - int hour = calendar.get(Calendar.HOUR_OF_DAY); - if (hour<6){ - throw new HttpException(17001); - } - } +// TimeRequired timeRequired = method.getAnnotation(TimeRequired.class); +// if (timeRequired !=null){ +// Calendar calendar = Calendar.getInstance(); +// int hour = calendar.get(Calendar.HOUR_OF_DAY); +// if (hour<6){ +// throw new HttpException(17001); +// } +// } LoginRequired methodAnnotation = method.getAnnotation(LoginRequired.class); if (methodAnnotation != null) { diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties index cbbe544..441d9b9 100644 --- a/src/main/resources/application-dev.properties +++ b/src/main/resources/application-dev.properties @@ -1,8 +1,8 @@ # 本地环境配置 -spring.server.port=23457 +spring.server.port=23462 # 数据源配置 -spring.datasource.url=jdbc:mysql://116.62.57.92:3306/subsidy_test?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8 +spring.datasource.url=jdbc:mysql://116.62.57.92:3306/subsidy_online?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8 #spring.datasource.url=jdbc:mysql://rm-uf6rab73w0qg843opxo.mysql.rds.aliyuncs.com:3306/subsidy_test?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8 spring.datasource.type=com.alibaba.druid.pool.DruidDataSource spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver -- libgit2 0.25.0