修改配置

This commit is contained in:
haozq 2025-09-17 16:57:25 +08:00
parent 1b672123c7
commit 00046fbc9a
5 changed files with 125 additions and 113 deletions

View File

@ -4,21 +4,13 @@
<option name="autoReloadType" value="SELECTIVE" /> <option name="autoReloadType" value="SELECTIVE" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="36ed794e-5b97-4492-a97d-aa229f0032e9" name="Changes" comment="修改路径"> <list default="true" id="36ed794e-5b97-4492-a97d-aa229f0032e9" name="Changes" comment="修改最大请求头限制">
<change afterPath="$PROJECT_DIR$/gateway/src/main/java/com/bonus/gateway/config/NettyConfig.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/jarRepositories.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/jarRepositories.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/api/api-system/api-system.iml" beforeDir="false" afterPath="$PROJECT_DIR$/api/api-system/api-system.iml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/api/api.iml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/common/common-security/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/common/common-security/pom.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/common/common-security/src/main/java/com/bonus/common/security/config/WebMvcConfig.java" beforeDir="false" afterPath="$PROJECT_DIR$/common/common-security/src/main/java/com/bonus/common/security/config/WebMvcConfig.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/common/common-security/src/main/java/com/bonus/common/security/interceptor/SecurityConfig.java" beforeDir="false" afterPath="$PROJECT_DIR$/common/common-security/src/main/java/com/bonus/common/security/interceptor/SecurityConfig.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/common/common-swagger/common-swagger.iml" beforeDir="false" afterPath="$PROJECT_DIR$/common/common-swagger/common-swagger.iml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/common/common.iml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/modules/bmw/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/modules/bmw/pom.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/modules/bmw/src/main/java/com/bonus/bmw/BmwApplication.java" beforeDir="false" afterPath="$PROJECT_DIR$/modules/bmw/src/main/java/com/bonus/bmw/BmwApplication.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/modules/bmw/src/main/resources/static/js/publicJs.js" beforeDir="false" afterPath="$PROJECT_DIR$/modules/bmw/src/main/resources/static/js/publicJs.js" afterDir="false" /> <change beforePath="$PROJECT_DIR$/modules/bmw/src/main/resources/static/js/publicJs.js" beforeDir="false" afterPath="$PROJECT_DIR$/modules/bmw/src/main/resources/static/js/publicJs.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/modules/lineProtector/src/main/java/com/bonus/lineProtector/basic/conf/ResourcesConfig.java" beforeDir="false" afterPath="$PROJECT_DIR$/modules/lineProtector/src/main/java/com/bonus/lineProtector/basic/conf/ResourcesConfig.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/modules/oiPlan/src/main/java/com/bonus/oiplan/basicDataManageMent/conf/ResourcesConfig.java" beforeDir="false" afterPath="$PROJECT_DIR$/modules/oiPlan/src/main/java/com/bonus/oiplan/basicDataManageMent/conf/ResourcesConfig.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/modules/oiPlan/src/main/resources/bootstrap.yml" beforeDir="false" afterPath="$PROJECT_DIR$/modules/oiPlan/src/main/resources/bootstrap.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/pom.xml" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -60,39 +52,39 @@
<option name="hideEmptyMiddlePackages" value="true" /> <option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" /> <option name="showLibraryContents" value="true" />
</component> </component>
<component name="PropertiesComponent">{ <component name="PropertiesComponent"><![CDATA[{
&quot;keyToString&quot;: { "keyToString": {
&quot;Maven.YnRealNameWeb [clean].executor&quot;: &quot;Run&quot;, "Maven.YnRealNameWeb [clean].executor": "Run",
&quot;Maven.YnRealNameWeb [install].executor&quot;: &quot;Run&quot;, "Maven.YnRealNameWeb [install].executor": "Run",
&quot;RequestMappingsPanelOrder0&quot;: &quot;0&quot;, "RequestMappingsPanelOrder0": "0",
&quot;RequestMappingsPanelOrder1&quot;: &quot;1&quot;, "RequestMappingsPanelOrder1": "1",
&quot;RequestMappingsPanelWidth0&quot;: &quot;75&quot;, "RequestMappingsPanelWidth0": "75",
&quot;RequestMappingsPanelWidth1&quot;: &quot;75&quot;, "RequestMappingsPanelWidth1": "75",
&quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;, "RunOnceActivity.OpenProjectViewOnStart": "true",
&quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;, "RunOnceActivity.ShowReadmeOnStart": "true",
&quot;RunOnceActivity.git.unshallow&quot;: &quot;true&quot;, "RunOnceActivity.git.unshallow": "true",
&quot;Spring Boot.AuthApplication.executor&quot;: &quot;Debug&quot;, "Spring Boot.AuthApplication.executor": "Debug",
&quot;Spring Boot.BmwApplication.executor&quot;: &quot;Run&quot;, "Spring Boot.BmwApplication.executor": "Debug",
&quot;Spring Boot.FileApplication.executor&quot;: &quot;Run&quot;, "Spring Boot.FileApplication.executor": "Run",
&quot;Spring Boot.GatewayApplication.executor&quot;: &quot;Debug&quot;, "Spring Boot.GatewayApplication.executor": "Debug",
&quot;Spring Boot.SystemApplication.executor&quot;: &quot;Run&quot;, "Spring Boot.SystemApplication.executor": "Debug",
&quot;git-widget-placeholder&quot;: &quot;main&quot;, "git-widget-placeholder": "main",
&quot;ignore.virus.scanning.warn.message&quot;: &quot;true&quot;, "ignore.virus.scanning.warn.message": "true",
&quot;kotlin-language-version-configured&quot;: &quot;true&quot;, "kotlin-language-version-configured": "true",
&quot;last_opened_file_path&quot;: &quot;F:/workspace/idea/YnRealNameWeb&quot;, "last_opened_file_path": "F:/workspace/idea/YnRealNameWeb",
&quot;node.js.detected.package.eslint&quot;: &quot;true&quot;, "node.js.detected.package.eslint": "true",
&quot;node.js.detected.package.tslint&quot;: &quot;true&quot;, "node.js.detected.package.tslint": "true",
&quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;, "node.js.selected.package.eslint": "(autodetect)",
&quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;, "node.js.selected.package.tslint": "(autodetect)",
&quot;nodejs_package_manager_path&quot;: &quot;npm&quot;, "nodejs_package_manager_path": "npm",
&quot;project.structure.last.edited&quot;: &quot;Project&quot;, "project.structure.last.edited": "Project",
&quot;project.structure.proportion&quot;: &quot;0.0&quot;, "project.structure.proportion": "0.0",
&quot;project.structure.side.proportion&quot;: &quot;0.44484413&quot;, "project.structure.side.proportion": "0.44484413",
&quot;run.configurations.included.in.services&quot;: &quot;true&quot;, "run.configurations.included.in.services": "true",
&quot;settings.editor.selected.configurable&quot;: &quot;reference.settings.project.maven.repository.indices&quot;, "settings.editor.selected.configurable": "reference.settings.project.maven.repository.indices",
&quot;vue.rearranger.settings.migration&quot;: &quot;true&quot; "vue.rearranger.settings.migration": "true"
} }
}</component> }]]></component>
<component name="ReactorSettings"> <component name="ReactorSettings">
<option name="notificationShown" value="true" /> <option name="notificationShown" value="true" />
</component> </component>
@ -124,7 +116,7 @@
</set> </set>
</option> </option>
</component> </component>
<component name="RunManager" selected="Spring Boot.GatewayApplication"> <component name="RunManager" selected="Spring Boot.BmwApplication">
<configuration name="AppApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" nameIsGenerated="true"> <configuration name="AppApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" nameIsGenerated="true">
<module name="real-name-app" /> <module name="real-name-app" />
<option name="SPRING_BOOT_MAIN_CLASS" value="com.bonus.app.AppApplication" /> <option name="SPRING_BOOT_MAIN_CLASS" value="com.bonus.app.AppApplication" />
@ -241,7 +233,13 @@
<workItem from="1757041087334" duration="2710000" /> <workItem from="1757041087334" duration="2710000" />
<workItem from="1757402045382" duration="1239000" /> <workItem from="1757402045382" duration="1239000" />
<workItem from="1757403385457" duration="1790000" /> <workItem from="1757403385457" duration="1790000" />
<workItem from="1757405352174" duration="437000" /> <workItem from="1757405352174" duration="863000" />
<workItem from="1757410327721" duration="2197000" />
<workItem from="1757412778876" duration="1686000" />
<workItem from="1757416500206" duration="131000" />
<workItem from="1757928254779" duration="77000" />
<workItem from="1757928379571" duration="881000" />
<workItem from="1758079442684" duration="3861000" />
</task> </task>
<task id="LOCAL-00001" summary="修改漏洞及添加网关拦截"> <task id="LOCAL-00001" summary="修改漏洞及添加网关拦截">
<option name="closed" value="true" /> <option name="closed" value="true" />
@ -283,7 +281,15 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1756105193178</updated> <updated>1756105193178</updated>
</task> </task>
<option name="localTasksCounter" value="6" /> <task id="LOCAL-00006" summary="修改最大请求头限制">
<option name="closed" value="true" />
<created>1757405840085</created>
<option name="number" value="00006" />
<option name="presentableId" value="LOCAL-00006" />
<option name="project" value="LOCAL" />
<updated>1757405840085</updated>
</task>
<option name="localTasksCounter" value="7" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
@ -343,7 +349,8 @@
<component name="VcsManagerConfiguration"> <component name="VcsManagerConfiguration">
<MESSAGE value="修改漏洞及添加网关拦截" /> <MESSAGE value="修改漏洞及添加网关拦截" />
<MESSAGE value="修改路径" /> <MESSAGE value="修改路径" />
<option name="LAST_COMMIT_MESSAGE" value="修改路径" /> <MESSAGE value="修改最大请求头限制" />
<option name="LAST_COMMIT_MESSAGE" value="修改最大请求头限制" />
</component> </component>
<component name="XDebuggerManager"> <component name="XDebuggerManager">
<breakpoint-manager> <breakpoint-manager>

View File

@ -1,9 +1,14 @@
//测试路径 //测试路径
let IP_URL="http://192.168.0.14:9101/ynRealName" let host=window.location.host;
let IP_URL="http://"+host+"/ynRealName";
//let IP_URL="http://192.168.0.7:9101/ynRealName"
//本地ip //本地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 ctxPath = IP_URL+"/bmw";
var currentHostname = window.location.hostname; var currentHostname = window.location.hostname;
var currentHostname2 = window.location.host;
console.log(currentHostname+":"+currentHostname2)
// //测试 // //测试
// var loginPath = "http://" + currentHostname + ":9200"; // var loginPath = "http://" + currentHostname + ":9200";

View File

@ -1,27 +1,27 @@
package com.bonus.lineProtector.basic.conf; //package com.bonus.lineProtector.basic.conf;
//
import org.springframework.context.annotation.Bean; //import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; //import org.springframework.context.annotation.Configuration;
import org.springframework.web.cors.CorsConfiguration; //import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.UrlBasedCorsConfigurationSource; //import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
import org.springframework.web.filter.CorsFilter; //import org.springframework.web.filter.CorsFilter;
//
/** ///**
* 通用映射配置 // * 通用映射配置
* // *
* @author ruoyi // * @author ruoyi
*/ // */
//
@Configuration //@Configuration
public class ResourcesConfig { //public class ResourcesConfig {
@Bean // @Bean
public CorsFilter corsFilter() { // public CorsFilter corsFilter() {
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource(); // UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
CorsConfiguration config = new CorsConfiguration(); // CorsConfiguration config = new CorsConfiguration();
config.addAllowedOrigin("*"); // config.addAllowedOrigin("*");
config.addAllowedHeader("*"); // config.addAllowedHeader("*");
config.addAllowedMethod("*"); // config.addAllowedMethod("*");
source.registerCorsConfiguration("/**", config); // source.registerCorsConfiguration("/**", config);
return new CorsFilter(source); // return new CorsFilter(source);
} // }
} //}

View File

@ -1,34 +1,34 @@
package com.bonus.oiplan.basicDataManageMent.conf; //package com.bonus.oiplan.basicDataManageMent.conf;
//
import java.io.File; //import java.io.File;
//
import org.springframework.beans.factory.annotation.Value; //import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean; //import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; //import org.springframework.context.annotation.Configuration;
import org.springframework.web.cors.CorsConfiguration; //import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.UrlBasedCorsConfigurationSource; //import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
import org.springframework.web.filter.CorsFilter; //import org.springframework.web.filter.CorsFilter;
import org.springframework.web.servlet.config.annotation.CorsRegistry; //import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; //import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; //import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
/** ///**
* 通用映射配置 // * 通用映射配置
* // *
* @author ruoyi // * @author ruoyi
*/ // */
//
@Configuration //@Configuration
public class ResourcesConfig { //public class ResourcesConfig {
@Bean // @Bean
public CorsFilter corsFilter() { // public CorsFilter corsFilter() {
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource(); // UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
CorsConfiguration config = new CorsConfiguration(); // CorsConfiguration config = new CorsConfiguration();
config.addAllowedOrigin("http://localhost:1911"); // config.addAllowedOrigin("http://localhost:1911");
config.addAllowedOrigin("http://localhost:1914"); // config.addAllowedOrigin("http://localhost:1914");
config.addAllowedHeader("*"); // config.addAllowedHeader("*");
config.addAllowedMethod("*"); // config.addAllowedMethod("*");
source.registerCorsConfiguration("/**", config); // source.registerCorsConfiguration("/**", config);
return new CorsFilter(source); // return new CorsFilter(source);
} // }
} //}

View File

@ -13,8 +13,8 @@ server:
buffered: true buffered: true
requestAttributesEnabled: true requestAttributesEnabled: true
port: 1914 port: 1914
servlet: # servlet:
context-path: /oiPlan # context-path: /oiPlan
# #
environment: @profiles.active@ environment: @profiles.active@