From 3b6dadda257a33ea8ced260f4473d2cec17e083e Mon Sep 17 00:00:00 2001 From: JEECG <445654970@qq.com> Date: Wed, 4 Dec 2024 09:17:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=AA=E8=A1=A8=E7=9B=98=E5=88=86=E4=BA=AB?= =?UTF-8?q?=E4=B8=8D=E7=99=BB=E5=BD=95=E6=97=A0=E6=B3=95=E8=AE=BF=E9=97=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/jmreport/config/SpringSecurityConfig.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/jimureport-example/src/main/java/com/jeecg/modules/jmreport/config/SpringSecurityConfig.java b/jimureport-example/src/main/java/com/jeecg/modules/jmreport/config/SpringSecurityConfig.java index e15ca59..4524f4a 100644 --- a/jimureport-example/src/main/java/com/jeecg/modules/jmreport/config/SpringSecurityConfig.java +++ b/jimureport-example/src/main/java/com/jeecg/modules/jmreport/config/SpringSecurityConfig.java @@ -30,6 +30,11 @@ public class SpringSecurityConfig { "/jmreport/desreport_/**/*.css", "/jmreport/desreport_/**/*.ico", "/jmreport/desreport_/**/*.png").permitAll() + // 放过静态资源-仪表盘 + .antMatchers("/drag/lib/**/*.css", + "/drag/lib/**/*.js", + "/drag/lib/**/*.png", + "/drag/**/*.ico").permitAll() // 不需要登录的接口 .antMatchers("/jmreport/excelQueryByTemplate", "/jmreport/query/report/folder/template", @@ -50,6 +55,10 @@ public class SpringSecurityConfig { "/jmreport/getQueryInfo", "/jmreport/show", "/jmreport/addViewCount/**").permitAll() + // 仪表盘分享页面 + .antMatchers("/drag/share/view/**", + "/drag/page/queryById", + "/drag/page/addVisitsNumber").permitAll() // view页面 .antMatchers("/jmreport/view/**").access("@viewPageCustomAccess.check(request,authentication)") .anyRequest().authenticated()