Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sh-ds
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
李良停
sh-ds
Commits
4b3afaf3
Commit
4b3afaf3
authored
May 06, 2022
by
wangsong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update ds.html
parent
63fec062
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
ApiInterceptorConfig.java
...en/authcenter/agent/interceptor/ApiInterceptorConfig.java
+12
-2
ds.html
eden-authcenter-agent/src/main/resources/templates/ds.html
+1
-1
No files found.
eden-authcenter-agent/src/main/java/com/chineseall/eden/authcenter/agent/interceptor/ApiInterceptorConfig.java
View file @
4b3afaf3
package
com
.
chineseall
.
eden
.
authcenter
.
agent
.
interceptor
;
package
com
.
chineseall
.
eden
.
authcenter
.
agent
.
interceptor
;
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.http.converter.HttpMessageConverter
;
import
org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
;
import
org.springframework.web.servlet.config.annotation.InterceptorRegistration
;
import
org.springframework.web.servlet.config.annotation.InterceptorRegistration
;
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
;
import
java.util.List
;
@Configuration
@Configuration
public
class
ApiInterceptorConfig
extends
WebMvcConfigurerAdapter
{
public
class
ApiInterceptorConfig
extends
WebMvcConfigurerAdapter
{
...
@@ -13,7 +17,13 @@ public class ApiInterceptorConfig extends WebMvcConfigurerAdapter {
...
@@ -13,7 +17,13 @@ public class ApiInterceptorConfig extends WebMvcConfigurerAdapter {
@Override
@Override
public
void
addInterceptors
(
InterceptorRegistry
registry
)
{
public
void
addInterceptors
(
InterceptorRegistry
registry
)
{
//注册TestInterceptor拦截器
//注册TestInterceptor拦截器
InterceptorRegistration
registration
=
registry
.
addInterceptor
(
apiInterceptor
);
// InterceptorRegistration registration = registry.addInterceptor(apiInterceptor);
registration
.
addPathPatterns
(
"/config/**"
);
//
// registration.addPathPatterns("/config/**"); //
}
@Override
public
void
extendMessageConverters
(
List
<
HttpMessageConverter
<?>>
converters
)
{
MappingJackson2HttpMessageConverter
converter
=
new
MappingJackson2HttpMessageConverter
();
converters
.
add
(
0
,
converter
);
}
}
}
}
eden-authcenter-agent/src/main/resources/templates/ds.html
View file @
4b3afaf3
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<script
type=
"text/javascript"
th:src=
"@{/static/js/browser.js}"
></script>
<script
type=
"text/javascript"
th:src=
"@{/static/js/browser.js}"
></script>
<script
th:inline=
"javascript"
>
<script
th:inline=
"javascript"
>
/*<![CDATA[*/
/*<![CDATA[*/
var
dianjiaoguanLoinUrl
=
[[
$
{
dianjiaoguanLoinUrl
}]];
var
dianjiaoguanLoinUrl
=
[[
$
{
dianjiaoguanLo
g
inUrl
}]];
var
edenoperationLoginUrl
=
[[
$
{
edenoperationLoginUrl
}]];
var
edenoperationLoginUrl
=
[[
$
{
edenoperationLoginUrl
}]];
var
logId
=
[[
$
{
logId
}]];
var
logId
=
[[
$
{
logId
}]];
var
loginType
=
[[
$
{
loginType
}]];
var
loginType
=
[[
$
{
loginType
}]];
...
...
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