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
25932961
Commit
25932961
authored
Jul 11, 2022
by
zengtianlai3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.3.4 代码质量:日志记录:使用系统输出流
parent
f1838a95
Changes
1
Hide 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 @
25932961
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