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 {
@Autowired
private
AdminServerProperties
adminServer
;
@Autowired
private
ZuulHandlerMapping
zuulHandlerMapping
;
@Bean
@Primary
public
CompositeRouteLocator
compositeRouteLocator
(
List
<
RouteLocator
>
locators
)
{
return
new
CompositeRouteLocator
(
locators
);
}
@Bean
@Order
(
0
)
...
...
@@ -72,15 +75,11 @@ public class RevereseZuulProxyConfiguration extends ZuulConfiguration {
return
routeLocator
;
}
@Bean
@Primary
public
CompositeRouteLocator
routeLocator
(
List
<
RouteLocator
>
locators
)
{
return
new
CompositeRouteLocator
(
locators
);
}
@Override
@Bean
@Order
(-
100
)
public
RouteLocator
routeLocator
()
{
return
null
;
return
super
.
routeLocator
()
;
}
@Bean
...
...
@@ -102,8 +101,8 @@ public class RevereseZuulProxyConfiguration extends ZuulConfiguration {
// pre filters
@Bean
public
PreDecorationFilter
preDecorationFilter
()
{
return
new
PreDecorationFilter
(
routeLocator
()
,
this
.
server
.
getServletPrefix
(),
public
PreDecorationFilter
preDecorationFilter
(
RouteLocator
routeLocator
)
{
return
new
PreDecorationFilter
(
routeLocator
,
this
.
server
.
getServletPrefix
(),
zuulProperties
,
proxyRequestHelper
());
}
...
...
@@ -120,7 +119,7 @@ public class RevereseZuulProxyConfiguration extends ZuulConfiguration {
@Bean
@Override
public
ApplicationListener
<
ApplicationEvent
>
zuulRefreshRoutesListener
()
{
return
new
ZuulRefreshListener
(
zuulHandlerMapping
);
return
new
ZuulRefreshListener
(
zuulHandlerMapping
(
null
)
);
}
@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