Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
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-cloud-netflix
Commits
88a82016
Commit
88a82016
authored
Dec 04, 2014
by
Spencer Gibb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
fc0aac3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
ZuulHandlerMapping.java
...pringframework/cloud/netflix/zuul/ZuulHandlerMapping.java
+4
-3
No files found.
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/ZuulHandlerMapping.java
View file @
88a82016
...
...
@@ -42,9 +42,10 @@ public class ZuulHandlerMapping extends AbstractUrlHandlerMapping implements
}
}
protected
void
registerHandlers
(
Collection
<
String
>
routes
)
{
protected
void
registerHandlers
()
{
Collection
<
String
>
routes
=
routeLocator
.
getRoutePaths
();
if
(
routes
.
isEmpty
())
{
logger
.
warn
(
"N
either 'urlMap' nor 'mappings' set on SimpleUrlHandlerMapping
"
);
logger
.
warn
(
"N
o routes found from ProxyRouteLocator
"
);
}
else
{
for
(
String
url
:
routes
)
{
...
...
@@ -56,7 +57,7 @@ public class ZuulHandlerMapping extends AbstractUrlHandlerMapping implements
@ManagedOperation
public
Map
<
String
,
String
>
reset
()
{
routeLocator
.
resetRoutes
();
registerHandlers
(
routeLocator
.
getRoutePaths
()
);
registerHandlers
();
return
getRoutes
();
}
...
...
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