Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zczlService
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曹崟
zczlService
Commits
4f4844e2
Commit
4f4844e2
authored
Apr 11, 2019
by
caoyin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加配置,跨域登录成功时返回成功提示
parent
3ee561a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
src/main/java/com/founder/config/FilterConfig.java
+9
-0
src/main/resources/version.txt
+1
-0
No files found.
src/main/java/com/founder/config/FilterConfig.java
View file @
4f4844e2
...
@@ -2,6 +2,7 @@ package com.founder.config;
...
@@ -2,6 +2,7 @@ package com.founder.config;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.web.servlet.config.annotation.CorsRegistry
;
import
org.springframework.web.servlet.config.annotation.InterceptorRegistry
;
import
org.springframework.web.servlet.config.annotation.InterceptorRegistry
;
import
org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
;
import
org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
;
...
@@ -19,4 +20,12 @@ public class FilterConfig extends WebMvcConfigurerAdapter {
...
@@ -19,4 +20,12 @@ public class FilterConfig extends WebMvcConfigurerAdapter {
addPathPatterns
(
"/**"
).
addPathPatterns
(
"/**"
).
excludePathPatterns
(
"/refreshCodeCache"
,
"/loginFail"
,
"/login"
,
"/toGetZczlListYth"
,
"/queryAllzTreeData"
,
"/queryUnitCode"
,
"/queryTypeCode"
,
"/queryZTreeDataByName"
);
excludePathPatterns
(
"/refreshCodeCache"
,
"/loginFail"
,
"/login"
,
"/toGetZczlListYth"
,
"/queryAllzTreeData"
,
"/queryUnitCode"
,
"/queryTypeCode"
,
"/queryZTreeDataByName"
);
}
}
@Override
public
void
addCorsMappings
(
CorsRegistry
registry
)
{
registry
.
addMapping
(
"/**"
)
.
allowedOrigins
(
"*"
)
.
allowCredentials
(
true
)
.
allowedMethods
(
"GET"
,
"POST"
,
"DELETE"
,
"PUT"
)
.
maxAge
(
3600
);
}
}
}
src/main/resources/version.txt
View file @
4f4844e2
...
@@ -48,5 +48,6 @@ version=@project.version@
...
@@ -48,5 +48,6 @@ version=@project.version@
#28.修改回报评价判断方式 01:修改回报评价判断方式
#28.修改回报评价判断方式 01:修改回报评价判断方式
#29.增加联络员移交指令信息功能 01:将之前联络员分派、签收的指令给改成新的联络员信息
#29.增加联络员移交指令信息功能 01:将之前联络员分派、签收的指令给改成新的联络员信息
#30.增加指令移交功能 01:将之前联络员签收的指令,移交给同单位的另外一个人负责(避免出差导致指令不能及时回报的问题)
#30.增加指令移交功能 01:将之前联络员签收的指令,移交给同单位的另外一个人负责(避免出差导致指令不能及时回报的问题)
#31.添加配置 01:跨域登录成功时返回成功提示
————————————————————@project.version@-——————————————————————————
————————————————————@project.version@-——————————————————————————
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment