From 1b672123c70a79c127d2c4c4132e5d642445cdb3 Mon Sep 17 00:00:00 2001
From: haozq <1611483981@qq.com>
Date: Tue, 9 Sep 2025 16:17:18 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9C=80=E5=A4=A7=E8=AF=B7?=
=?UTF-8?q?=E6=B1=82=E5=A4=B4=E9=99=90=E5=88=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/jarRepositories.xml | 5 +
.idea/misc.xml | 2 +-
.idea/workspace.xml | 284 +++++++++++++++---
api/api-system/api-system.iml | 137 +--------
api/api.iml | 8 -
common/common-security/pom.xml | 8 +-
.../common/security/config/WebMvcConfig.java | 1 -
.../security/interceptor/SecurityConfig.java | 39 +--
common/common-swagger/common-swagger.iml | 75 +----
common/common.iml | 8 -
.../com/bonus/gateway/config/NettyConfig.java | 21 ++
modules/bmw/pom.xml | 10 +-
.../java/com/bonus/bmw/BmwApplication.java | 3 +
.../src/main/resources/static/js/publicJs.js | 4 +-
14 files changed, 307 insertions(+), 298 deletions(-)
delete mode 100644 api/api.iml
delete mode 100644 common/common.iml
create mode 100644 gateway/src/main/java/com/bonus/gateway/config/NettyConfig.java
diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
index 350ae52..a67ee4e 100644
--- a/.idea/jarRepositories.xml
+++ b/.idea/jarRepositories.xml
@@ -6,6 +6,11 @@
+
+
+
+
+
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 4c7d54e..b784bbc 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -8,5 +8,5 @@
-
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 07a45f9..e6ebaf6 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,37 +4,117 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {
+ "associatedIndex": 4
+}
- {
+ "keyToString": {
+ "Maven.YnRealNameWeb [clean].executor": "Run",
+ "Maven.YnRealNameWeb [install].executor": "Run",
+ "RequestMappingsPanelOrder0": "0",
+ "RequestMappingsPanelOrder1": "1",
+ "RequestMappingsPanelWidth0": "75",
+ "RequestMappingsPanelWidth1": "75",
+ "RunOnceActivity.OpenProjectViewOnStart": "true",
+ "RunOnceActivity.ShowReadmeOnStart": "true",
+ "RunOnceActivity.git.unshallow": "true",
+ "Spring Boot.AuthApplication.executor": "Debug",
+ "Spring Boot.BmwApplication.executor": "Run",
+ "Spring Boot.FileApplication.executor": "Run",
+ "Spring Boot.GatewayApplication.executor": "Debug",
+ "Spring Boot.SystemApplication.executor": "Run",
+ "git-widget-placeholder": "main",
+ "ignore.virus.scanning.warn.message": "true",
+ "kotlin-language-version-configured": "true",
+ "last_opened_file_path": "F:/workspace/idea/YnRealNameWeb",
+ "node.js.detected.package.eslint": "true",
+ "node.js.detected.package.tslint": "true",
+ "node.js.selected.package.eslint": "(autodetect)",
+ "node.js.selected.package.tslint": "(autodetect)",
+ "nodejs_package_manager_path": "npm",
+ "project.structure.last.edited": "Project",
+ "project.structure.proportion": "0.0",
+ "project.structure.side.proportion": "0.44484413",
+ "run.configurations.included.in.services": "true",
+ "settings.editor.selected.configurable": "reference.settings.project.maven.repository.indices",
+ "vue.rearranger.settings.migration": "true"
}
-}]]>
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -44,7 +124,7 @@
-
+
@@ -121,7 +201,8 @@
-
+
+
@@ -130,24 +211,6 @@
C:\Users\86157\AppData\Roaming\Subversion
125
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -155,11 +218,152 @@
1755738958253
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1755746374293
+
+
+
+ 1755746374293
+
+
+
+ 1755757475300
+
+
+
+ 1755757475300
+
+
+
+ 1755759505476
+
+
+
+ 1755759505476
+
+
+
+ 1755771777873
+
+
+
+ 1755771777873
+
+
+
+ 1756105193178
+
+
+
+ 1756105193178
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ file://$PROJECT_DIR$/gateway/src/main/java/com/bonus/gateway/xss/XssRequestGlobalFilter.java
+ 92
+
+
+
+ file://$PROJECT_DIR$/gateway/src/main/java/com/bonus/gateway/xss/XssRequestGlobalFilter.java
+ 94
+
+
+
+ file://$PROJECT_DIR$/common/common-security/src/main/java/com/bonus/common/security/interceptor/SecurityConfig.java
+ 10
+
+
+
+
+
\ No newline at end of file
diff --git a/api/api-system/api-system.iml b/api/api-system/api-system.iml
index 83d1bc2..1daccae 100644
--- a/api/api-system/api-system.iml
+++ b/api/api-system/api-system.iml
@@ -1,143 +1,8 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/api/api.iml b/api/api.iml
deleted file mode 100644
index 0037200..0000000
--- a/api/api.iml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/common/common-security/pom.xml b/common/common-security/pom.xml
index 74be71f..27c17b3 100644
--- a/common/common-security/pom.xml
+++ b/common/common-security/pom.xml
@@ -27,10 +27,10 @@
com.bonus
api-system
-
- org.springframework.boot
- spring-boot-starter-security
-
+
+
+
+
com.bonus
diff --git a/common/common-security/src/main/java/com/bonus/common/security/config/WebMvcConfig.java b/common/common-security/src/main/java/com/bonus/common/security/config/WebMvcConfig.java
index 522b6cb..cf02d5e 100644
--- a/common/common-security/src/main/java/com/bonus/common/security/config/WebMvcConfig.java
+++ b/common/common-security/src/main/java/com/bonus/common/security/config/WebMvcConfig.java
@@ -2,7 +2,6 @@ package com.bonus.common.security.config;
import com.bonus.common.core.table.PageTableArgumentResolver;
import com.bonus.common.security.interceptor.HeaderInterceptor;
-import com.bonus.common.security.interceptor.SecurityConfig;
import org.springframework.boot.web.servlet.MultipartConfigFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
diff --git a/common/common-security/src/main/java/com/bonus/common/security/interceptor/SecurityConfig.java b/common/common-security/src/main/java/com/bonus/common/security/interceptor/SecurityConfig.java
index c70cc00..b467c09 100644
--- a/common/common-security/src/main/java/com/bonus/common/security/interceptor/SecurityConfig.java
+++ b/common/common-security/src/main/java/com/bonus/common/security/interceptor/SecurityConfig.java
@@ -1,19 +1,20 @@
-package com.bonus.common.security.interceptor;
-
-
-import org.springframework.context.annotation.Configuration;
-import org.springframework.security.config.annotation.web.builders.HttpSecurity;
-import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
-import org.springframework.stereotype.Component;
-
-/**
- * @author 黑子
- */
-@Configuration
-public class SecurityConfig extends WebSecurityConfigurerAdapter {
- @Override
- protected void configure(HttpSecurity http) throws Exception {
- http.headers()
- .contentSecurityPolicy("default-src 'self'; script-src 'self' https://trusted.cdn.com;");
- }
-}
+//package com.bonus.common.security.interceptor;
+//
+//
+//import org.springframework.context.annotation.Configuration;
+//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
+//import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
+//import org.springframework.stereotype.Component;
+//
+///**
+// * @author 黑子
+// */
+//
+////@Configuration
+//public class SecurityConfig extends WebSecurityConfigurerAdapter {
+// @Override
+// protected void configure(HttpSecurity http) throws Exception {
+// http.headers().contentSecurityPolicy("default-src 'self'; script-src 'self' https://trusted.cdn.com; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'; connect-src 'self'; frame-ancestors 'none'; object-src 'none';");
+// http.headers().cacheControl();
+// }
+//}
diff --git a/common/common-swagger/common-swagger.iml b/common/common-swagger/common-swagger.iml
index fea52ef..1daccae 100644
--- a/common/common-swagger/common-swagger.iml
+++ b/common/common-swagger/common-swagger.iml
@@ -1,81 +1,8 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/common/common.iml b/common/common.iml
deleted file mode 100644
index 0037200..0000000
--- a/common/common.iml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/gateway/src/main/java/com/bonus/gateway/config/NettyConfig.java b/gateway/src/main/java/com/bonus/gateway/config/NettyConfig.java
new file mode 100644
index 0000000..1ff1c1f
--- /dev/null
+++ b/gateway/src/main/java/com/bonus/gateway/config/NettyConfig.java
@@ -0,0 +1,21 @@
+package com.bonus.gateway.config;
+
+import org.springframework.boot.web.embedded.netty.NettyReactiveWebServerFactory;
+import org.springframework.boot.web.server.WebServerFactoryCustomizer;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+public class NettyConfig {
+
+ @Bean
+ public WebServerFactoryCustomizer nettyCustomizer() {
+ return factory -> {
+ factory.addServerCustomizers(server -> {
+ return server.httpRequestDecoder(spec ->
+ spec.maxInitialLineLength(16384) // 请求行
+ .maxHeaderSize(32768)); // 请求头
+ });
+ };
+ }
+}
\ No newline at end of file
diff --git a/modules/bmw/pom.xml b/modules/bmw/pom.xml
index 2c67e50..66d074a 100644
--- a/modules/bmw/pom.xml
+++ b/modules/bmw/pom.xml
@@ -16,7 +16,10 @@
-
+
+
+
+
net.javacrumbs.shedlock
@@ -115,10 +118,7 @@
spring-boot-devtools
-
+
diff --git a/modules/bmw/src/main/java/com/bonus/bmw/BmwApplication.java b/modules/bmw/src/main/java/com/bonus/bmw/BmwApplication.java
index f77c01f..9b0b83c 100644
--- a/modules/bmw/src/main/java/com/bonus/bmw/BmwApplication.java
+++ b/modules/bmw/src/main/java/com/bonus/bmw/BmwApplication.java
@@ -11,6 +11,8 @@ import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ApplicationContext;
import org.springframework.core.env.Environment;
+import java.security.Security;
+
/**
* @author admin
* EnableSchedulerLock 定时器的分布式锁
@@ -19,6 +21,7 @@ import org.springframework.core.env.Environment;
@EnableCustomSwagger2
@EnableRyFeignClients
@SpringBootApplication
+//@SpringBootApplication(exclude = {SecurityAutoConfiguration.class, SecurityFilterAutoConfiguration.class})
@MapperScan({"com.bonus.bmw.*.*.dao", "com.bonus.bmw.*.dao"})
@EnableSchedulerLock(defaultLockAtMostFor = "PT10M")
@ServletComponentScan
diff --git a/modules/bmw/src/main/resources/static/js/publicJs.js b/modules/bmw/src/main/resources/static/js/publicJs.js
index d853fa0..5ba234b 100644
--- a/modules/bmw/src/main/resources/static/js/publicJs.js
+++ b/modules/bmw/src/main/resources/static/js/publicJs.js
@@ -1,7 +1,7 @@
//测试路径
-// let IP_URL="http://192.168.0.14:9101/ynRealName"
+ let IP_URL="http://192.168.0.14:9101/ynRealName"
//本地ip
-let IP_URL="http://127.0.0.1:9101/ynRealName"
+//let IP_URL="http://127.0.0.1:9101/ynRealName"
var ctxPath = IP_URL+"/bmw";
var currentHostname = window.location.hostname;