Commit ceb304d6 authored by 赵啸非's avatar 赵啸非

提交配置校验

parent b035c181
......@@ -20,8 +20,8 @@ public class AreaMatchCodeUtil {
if (AreaLevelEnum.地市州.getValue() == areaLevel) {
matchCode=StrUtil.sub(matchCode, 0, 3);
return StrUtil.padAfter(matchCode, 3, "0");
matchCode=StrUtil.sub(matchCode, 0, 4);
return StrUtil.padAfter(matchCode, 4, "0");
} else if (AreaLevelEnum.区县.getValue() == areaLevel) {
//510921174000
matchCode=StrUtil.sub(matchCode, 0, 6);
......
......@@ -18,7 +18,7 @@
<property name="showSql" value="MySql" />
</plugin>
<plugin interceptor="com.mortals.framework.thirty.mybatis.LogInterceptor">
<property name="enableExecutorTime" value="true" />
<property name="enableExecutorTime" value="false" />
<property name="showSql" value="false" />
</plugin>
......
......@@ -54,7 +54,7 @@ POST {{baseUrl}}/base/area/genSubAreaByAreaName
Content-Type: application/json
{
"areaCode": "510714000000"
"areaCode": "511900000000"
}
......
......@@ -22,10 +22,9 @@ public class CorsConfig implements WebMvcConfigurer {
//初始化配置对象
CorsConfiguration configuration = new CorsConfiguration();
//允许跨域访问的域名
//configuration.addAllowedOrigin("*");
// configuration.addAllowedOrigin("http://192.168.0.98");
configuration.addAllowedOrigin("*");
configuration.setAllowCredentials(true); //运行携带cookie
// configuration.addAllowedMethod("*"); //代表所有请求方法
configuration.addAllowedMethod("*"); //代表所有请求方法
configuration.addAllowedHeader("*"); //允许携带任何头信息
//初始化cors配置源对象
......@@ -40,7 +39,7 @@ public class CorsConfig implements WebMvcConfigurer {
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowCredentials(true)
//.allowedOrigins("*")
.allowedOrigins("*")
.allowedMethods(new String[] { "GET", "POST","PUT","DELETE"})
.allowedHeaders("*")
.exposedHeaders("*");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment