Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-boot-admin
Project
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
openSource
spring-boot-admin
Commits
d322b0a4
Commit
d322b0a4
authored
Nov 06, 2016
by
Johannes Edmeier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish RevereseZuulProxyConfiguration
parent
d6c97130
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
RevereseZuulProxyConfiguration.java
...ric/boot/admin/config/RevereseZuulProxyConfiguration.java
+11
-12
No files found.
spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/config/RevereseZuulProxyConfiguration.java
View file @
d322b0a4
...
@@ -59,8 +59,11 @@ public class RevereseZuulProxyConfiguration extends ZuulConfiguration {
...
@@ -59,8 +59,11 @@ public class RevereseZuulProxyConfiguration extends ZuulConfiguration {
@Autowired
@Autowired
private
AdminServerProperties
adminServer
;
private
AdminServerProperties
adminServer
;
@Autowired
@Bean
private
ZuulHandlerMapping
zuulHandlerMapping
;
@Primary
public
CompositeRouteLocator
compositeRouteLocator
(
List
<
RouteLocator
>
locators
)
{
return
new
CompositeRouteLocator
(
locators
);
}
@Bean
@Bean
@Order
(
0
)
@Order
(
0
)
...
@@ -72,15 +75,11 @@ public class RevereseZuulProxyConfiguration extends ZuulConfiguration {
...
@@ -72,15 +75,11 @@ public class RevereseZuulProxyConfiguration extends ZuulConfiguration {
return
routeLocator
;
return
routeLocator
;
}
}
@Bean
@Primary
public
CompositeRouteLocator
routeLocator
(
List
<
RouteLocator
>
locators
)
{
return
new
CompositeRouteLocator
(
locators
);
}
@Override
@Override
@Bean
@Order
(-
100
)
public
RouteLocator
routeLocator
()
{
public
RouteLocator
routeLocator
()
{
return
null
;
return
super
.
routeLocator
()
;
}
}
@Bean
@Bean
...
@@ -102,8 +101,8 @@ public class RevereseZuulProxyConfiguration extends ZuulConfiguration {
...
@@ -102,8 +101,8 @@ public class RevereseZuulProxyConfiguration extends ZuulConfiguration {
// pre filters
// pre filters
@Bean
@Bean
public
PreDecorationFilter
preDecorationFilter
()
{
public
PreDecorationFilter
preDecorationFilter
(
RouteLocator
routeLocator
)
{
return
new
PreDecorationFilter
(
routeLocator
()
,
this
.
server
.
getServletPrefix
(),
return
new
PreDecorationFilter
(
routeLocator
,
this
.
server
.
getServletPrefix
(),
zuulProperties
,
proxyRequestHelper
());
zuulProperties
,
proxyRequestHelper
());
}
}
...
@@ -120,7 +119,7 @@ public class RevereseZuulProxyConfiguration extends ZuulConfiguration {
...
@@ -120,7 +119,7 @@ public class RevereseZuulProxyConfiguration extends ZuulConfiguration {
@Bean
@Bean
@Override
@Override
public
ApplicationListener
<
ApplicationEvent
>
zuulRefreshRoutesListener
()
{
public
ApplicationListener
<
ApplicationEvent
>
zuulRefreshRoutesListener
()
{
return
new
ZuulRefreshListener
(
zuulHandlerMapping
);
return
new
ZuulRefreshListener
(
zuulHandlerMapping
(
null
)
);
}
}
@Configuration
@Configuration
...
...
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