1、允许匿名访问地址,排查/模糊匹配,修改为严格相等

2、解决终审列表查询管理员报错问题
dev
chenhui 1 year ago
parent 163e264375
commit 77aafd3a78

@ -58,15 +58,19 @@ public class JwtAuthenticationFilter extends OncePerRequestFilter {
String[] excludespath = systemopenurlService.getOpenUrl(); String[] excludespath = systemopenurlService.getOpenUrl();
//不需要过滤的url //不需要过滤的url
String[] excludesOther = {"/static","/json",".js",".css",".ico",".jpg",".png",".pcm","/","/druid"}; String[] excludesOther = {"/static","/json",".js",".css",".ico",".jpg",".png",".pcm","/druid"};
String[] urls = ArrayUtils.addAll(excludespath, excludesOther); String[] urls = ArrayUtils.addAll(excludespath, excludesOther);
boolean flag = true; boolean flag = true;
for (String str : urls) { if("/".equalsIgnoreCase(spath)) {
if (spath.indexOf(str) != -1) { flag = false;
flag =false; }else{
break; for (String str : urls) {
if (spath.indexOf(str) != -1) {
flag = false;
break;
}
} }
} }
if(flag){ if(flag){

@ -168,7 +168,8 @@ select tcp.* from (
select select
tc.* tc.*
from ocr_taskchild_picture tc,OA_USERFINAL_T uf from ocr_taskchild_picture tc,OA_USERFINAL_T uf
where tc.ID = uf.FORMID and uf.USERID ${thisLoginUserid.dataOp} ${thisLoginUserid.likestar}#{thisLoginUserid.value}${thisLoginUserid.likeend} where tc.ID = uf.FORMID
<if test="thisLoginUserid != null"> and uf.USERID ${thisLoginUserid.dataOp} ${thisLoginUserid.likestar}#{thisLoginUserid.value}${thisLoginUserid.likeend}</if>
UNION UNION
select select
tc.* tc.*
@ -188,7 +189,8 @@ select tcp.* from (
select select
tc.* tc.*
from ocr_taskchild_picture tc,OA_USERFINAL_T uf from ocr_taskchild_picture tc,OA_USERFINAL_T uf
where tc.ID = uf.FORMID and uf.USERID ${thisLoginUserid.dataOp} ${thisLoginUserid.likestar}#{thisLoginUserid.value}${thisLoginUserid.likeend} where tc.ID = uf.FORMID
<if test="thisLoginUserid != null"> and uf.USERID ${thisLoginUserid.dataOp} ${thisLoginUserid.likestar}#{thisLoginUserid.value}${thisLoginUserid.likeend}</if>
UNION UNION
select select
tc.* tc.*

@ -23,10 +23,10 @@ spring:
primary: master primary: master
datasource: datasource:
master: master:
url: jdbc:mysql://127.0.0.1:3306/ocr?useUnicode=true&nullCatalogMeansCurrent=true&characterEncoding=UTF-8&characterSetResults=utf8&serverTimezone=Asia/Shanghai&useSSL=false url: jdbc:mysql://47.93.59.251:3306/ocrnew?useUnicode=true&nullCatalogMeansCurrent=true&characterEncoding=UTF-8&characterSetResults=utf8&serverTimezone=Asia/Shanghai&useSSL=false
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
username: jyjz username: ysltest
password: jyjz password: ysltest2024.
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
slave: slave:
url: jdbc:mysql://127.0.0.1:3306/ocr?useUnicode=true&nullCatalogMeansCurrent=true&characterEncoding=UTF-8&characterSetResults=utf8&serverTimezone=Asia/Shanghai&useSSL=false url: jdbc:mysql://127.0.0.1:3306/ocr?useUnicode=true&nullCatalogMeansCurrent=true&characterEncoding=UTF-8&characterSetResults=utf8&serverTimezone=Asia/Shanghai&useSSL=false
@ -104,7 +104,7 @@ flowable:
deployment-api-url: http://127.0.0.1:9090/foodapi/flowable-task/app-api deployment-api-url: http://127.0.0.1:9090/foodapi/flowable-task/app-api
#关闭定时任务JOB #关闭定时任务JOB
async-executor-activate: false async-executor-activate: false
database-schema-update: true database-schema-update: false
# #
# cache: # cache:
# type: redis # type: redis
@ -140,7 +140,7 @@ flowable:
mybatis: mybatis:
mapper-locations: mapper-locations:
- classpath*:mapper/**/*.xml - classpath*:mapper/**/*.xml
# - classpath*:/META-INF/modeler-mybatis-mappings/*.xml # - classpath*:/META-INF/modeler-mybatis-mappings/*.xml
configuration: configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
configuration-properties: configuration-properties:
@ -161,15 +161,15 @@ mybatis-plus:
xiaoyao: xiaoyao:
web: web:
#上传文件路径 #上传文件路径
uploadPath: D:/ideaWork/jeecg/ocrproject/htmlweb/upload uploadPath: X:/project3/2024_ai_gd/ocr/htmlweb/upload
#页面根路径 #页面根路径
frontPath: D:/ideaWork/jeecg/ocrproject/htmlweb frontPath: X:/project3/2024_ai_gd/ocr/htmlweb
#js、css、图片存放路径 #js、css、图片存放路径
staticPath: D:/ideaWork/jeecg/ocrproject/htmlweb/static staticPath: X:/project3/2024_ai_gd/ocr/htmlweb/static
#页面模版路径 #页面模版路径
webPath: D:/ideaWork/jeecg/ocrproject/htmlweb/web webPath: X:/project3/2024_ai_gd/ocr/htmlweb/web
#Lucene索引路径 #Lucene索引路径
lucenePath: D:/ideaWork/jeecg/ocrproject/htmlweb/lucene/indexDir lucenePath: X:/project3/2024_ai_gd/ocr/htmlweb/lucene/indexDir
#是否开启flowable #是否开启flowable
haveFlowable: true haveFlowable: true
webconfig: webconfig:

Loading…
Cancel
Save