Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ioc_sixiang_license
Project
Project
Details
Activity
Releases
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
zengtianlai3
ioc_sixiang_license
Commits
e008c174
Commit
e008c174
authored
Jul 11, 2022
by
zengtianlai3
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/for-yx' into for-yx
parents
4b73783d
25932961
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
XSSFilterConfig.java
...rc/main/java/iot/sixiang/license/xss/XSSFilterConfig.java
+3
-1
No files found.
license/src/main/java/iot/sixiang/license/xss/XSSFilterConfig.java
View file @
e008c174
package
iot
.
sixiang
.
license
.
xss
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.boot.web.servlet.FilterRegistrationBean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
@@ -11,12 +12,13 @@ import org.springframework.context.annotation.DependsOn;
* @Description
*/
@Configuration
@Slf4j
public
class
XSSFilterConfig
{
@Bean
@DependsOn
(
"xssFilter"
)
public
FilterRegistrationBean
filterRegistrationBean
()
{
System
.
out
.
println
(
"===================filterRegistrationBean"
);
log
.
info
(
"===================filterRegistrationBean"
);
FilterRegistrationBean
registration
=
new
FilterRegistrationBean
();
registration
.
setFilter
(
new
XssFilter
());
registration
.
addUrlPatterns
(
"/*"
);
...
...
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