From a7e051f0ae277fb49b9697d3fb7c964eed923e1d Mon Sep 17 00:00:00 2001 From: wans <747101512@qq.com> Date: Wed, 30 Mar 2022 15:32:39 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=BC=95=E5=85=A5=E8=92=99=E9=80=9F?= =?UTF-8?q?=E5=8A=9EH5=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 6 +++ .../ServiceUserCenterApplication.java | 2 + .../config/WebSecurityConfig.java | 3 +- .../resources/templates/inspur-index.html | 38 +++++++++++++++++++ 4 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/templates/inspur-index.html diff --git a/pom.xml b/pom.xml index e6fa4e7..127cff5 100644 --- a/pom.xml +++ b/pom.xml @@ -128,6 +128,12 @@ 1.0.2-SNAPSHOT + + com.cm + cloud-common-msbh5 + 1.0.2-SNAPSHOT + + org.projectlombok lombok diff --git a/src/main/java/com/cm/serviceusercenter/ServiceUserCenterApplication.java b/src/main/java/com/cm/serviceusercenter/ServiceUserCenterApplication.java index 8c02589..cb8b53d 100644 --- a/src/main/java/com/cm/serviceusercenter/ServiceUserCenterApplication.java +++ b/src/main/java/com/cm/serviceusercenter/ServiceUserCenterApplication.java @@ -3,6 +3,7 @@ package com.cm.serviceusercenter; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.web.servlet.ServletComponentScan; import org.springframework.context.annotation.ComponentScan; import springfox.documentation.swagger2.annotations.EnableSwagger2; @@ -13,6 +14,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2; @SpringBootApplication @ComponentScan("com.cm") @MapperScan({"com.cm.**.dao"}) +@ServletComponentScan(basePackages = "com.cm") public class ServiceUserCenterApplication { public static void main(String[] args) { diff --git a/src/main/java/com/cm/serviceusercenter/config/WebSecurityConfig.java b/src/main/java/com/cm/serviceusercenter/config/WebSecurityConfig.java index 7ad51cb..3da8efa 100644 --- a/src/main/java/com/cm/serviceusercenter/config/WebSecurityConfig.java +++ b/src/main/java/com/cm/serviceusercenter/config/WebSecurityConfig.java @@ -69,7 +69,8 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { "/route/file/**", "/api/sms/getverificationcode/*", "/api/user/getsignintype/**", - "/ws") + "/ws", + "/inspur/**") .permitAll() .and() .authorizeRequests() diff --git a/src/main/resources/templates/inspur-index.html b/src/main/resources/templates/inspur-index.html new file mode 100644 index 0000000..4a93f48 --- /dev/null +++ b/src/main/resources/templates/inspur-index.html @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + 蒙速办-首页 + + 该页面用于对接测试 + + 正式环境需替换为实际应用首页 + + + + + + + \ No newline at end of file From a122874bf0de8958fff14277ac316334bde14e24 Mon Sep 17 00:00:00 2001 From: wans <747101512@qq.com> Date: Wed, 30 Mar 2022 16:32:27 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=92=99=E9=80=9F?= =?UTF-8?q?=E5=8A=9EH5=E5=BA=94=E7=94=A8=E5=AF=B9=E6=8E=A5=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml index 61d454a..1aa7767 100644 --- a/src/main/resources/application-test.yml +++ b/src/main/resources/application-test.yml @@ -142,6 +142,11 @@ logging: root: error com.cm: debug +# 蒙速办对接H5应用配置 +inspur-auth: + appId: 102cf5ab-8359-4ee2-ba8a-f3752fa3b16f + redirectUri: http://dlho.cn:9003/signup/inspur/index + # 短信服务 sms: active: false