From 77078b6e2a9dec8343e027cc8e04fbd41c82fe4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Sat, 2 Jul 2022 14:27:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E3=80=81=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E6=B8=85=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xm-bootstrap/src/main/java/com/xm/WebSecurityConfig.java | 1 + xm-core/src/test/java/com/xm/WebSecurityConfig.java | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/xm-bootstrap/src/main/java/com/xm/WebSecurityConfig.java b/xm-bootstrap/src/main/java/com/xm/WebSecurityConfig.java index 3e06145d..03e892d1 100644 --- a/xm-bootstrap/src/main/java/com/xm/WebSecurityConfig.java +++ b/xm-bootstrap/src/main/java/com/xm/WebSecurityConfig.java @@ -42,6 +42,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { "/**/xm/core/xmTask/getOutTask", "/**/xm/core/xmBranchState/list/portal/allBranchSum", "/**/xm/core/xmProjectState/list/portal", + "/**/core/xmRecordVisit/add", "/swagger-ui.html", "/webjars/**", diff --git a/xm-core/src/test/java/com/xm/WebSecurityConfig.java b/xm-core/src/test/java/com/xm/WebSecurityConfig.java index bf7669a3..504daf23 100644 --- a/xm-core/src/test/java/com/xm/WebSecurityConfig.java +++ b/xm-core/src/test/java/com/xm/WebSecurityConfig.java @@ -2,14 +2,11 @@ package com.xm; import com.mdp.oauth2.client.resource.MdpJwtAuthenticationConverter; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Value; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.builders.WebSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; import org.springframework.security.oauth2.jwt.JwtDecoder; -import org.springframework.security.oauth2.jwt.NimbusJwtDecoder; -import org.springframework.web.client.RestOperations; /** * com.qqkj.WebSecurityConfig @@ -41,7 +38,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests().antMatchers("/**/xm/core/xmTask/shareTaskDetail", - + "/**/core/xmRecordVisit/add", "/swagger-ui.html", "/webjars/**", "/swagger-ui/**",