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
e91b8386
Commit
e91b8386
authored
Dec 26, 2016
by
Johannes Edmeier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
6fdaf8c1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
TurbineProperties.java
...a/spring/boot/admin/turbine/config/TurbineProperties.java
+2
-1
AdminServerProperties.java
.../codecentric/boot/admin/config/AdminServerProperties.java
+3
-1
RegistryController.java
...decentric/boot/admin/registry/web/RegistryController.java
+4
-3
CompositeRouteLocatorTest.java
...ic/boot/admin/zuul/filters/CompositeRouteLocatorTest.java
+1
-1
No files found.
spring-boot-admin-server-ui-turbine/src/main/java/spring/boot/admin/turbine/config/TurbineProperties.java
View file @
e91b8386
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
package
spring
.
boot
.
admin
.
turbine
.
config
;
package
spring
.
boot
.
admin
.
turbine
.
config
;
import
java.net.URI
;
import
java.net.URI
;
import
java.util.Arrays
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
...
@@ -43,7 +44,7 @@ public class TurbineProperties {
...
@@ -43,7 +44,7 @@ public class TurbineProperties {
}
}
public
void
setClusters
(
String
[]
clusters
)
{
public
void
setClusters
(
String
[]
clusters
)
{
this
.
clusters
=
clusters
;
this
.
clusters
=
Arrays
.
copyOf
(
clusters
,
clusters
.
length
)
;
}
}
public
boolean
isEnabled
()
{
public
boolean
isEnabled
()
{
...
...
spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/config/AdminServerProperties.java
View file @
e91b8386
package
de
.
codecentric
.
boot
.
admin
.
config
;
package
de
.
codecentric
.
boot
.
admin
.
config
;
import
java.util.Arrays
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
@ConfigurationProperties
(
"spring.boot.admin"
)
@ConfigurationProperties
(
"spring.boot.admin"
)
...
@@ -76,7 +78,7 @@ public class AdminServerProperties {
...
@@ -76,7 +78,7 @@ public class AdminServerProperties {
}
}
public
void
setEndpoints
(
String
[]
endpoints
)
{
public
void
setEndpoints
(
String
[]
endpoints
)
{
this
.
endpoints
=
endpoints
;
this
.
endpoints
=
Arrays
.
copyOf
(
endpoints
,
endpoints
.
length
)
;
}
}
}
}
}
}
spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/registry/web/RegistryController.java
View file @
e91b8386
...
@@ -56,9 +56,10 @@ public class RegistryController {
...
@@ -56,9 +56,10 @@ public class RegistryController {
*/
*/
@RequestMapping
(
method
=
RequestMethod
.
POST
)
@RequestMapping
(
method
=
RequestMethod
.
POST
)
public
ResponseEntity
<
Application
>
register
(
@RequestBody
Application
application
)
{
public
ResponseEntity
<
Application
>
register
(
@RequestBody
Application
application
)
{
application
=
Application
.
copyOf
(
application
).
withSource
(
"http-api"
).
build
();
Application
applicationWithSource
=
Application
.
copyOf
(
application
).
withSource
(
"http-api"
)
LOGGER
.
debug
(
"Register application {}"
,
application
.
toString
());
.
build
();
Application
registeredApp
=
registry
.
register
(
application
);
LOGGER
.
debug
(
"Register application {}"
,
applicationWithSource
.
toString
());
Application
registeredApp
=
registry
.
register
(
applicationWithSource
);
return
ResponseEntity
.
status
(
HttpStatus
.
CREATED
).
body
(
registeredApp
);
return
ResponseEntity
.
status
(
HttpStatus
.
CREATED
).
body
(
registeredApp
);
}
}
...
...
spring-boot-admin-server/src/test/java/de/codecentric/boot/admin/zuul/filters/CompositeRouteLocatorTest.java
View file @
e91b8386
...
@@ -83,7 +83,7 @@ public class CompositeRouteLocatorTest {
...
@@ -83,7 +83,7 @@ public class CompositeRouteLocatorTest {
private
Collection
<
String
>
ignoredPaths
;
private
Collection
<
String
>
ignoredPaths
;
private
List
<
Route
>
routes
;
private
List
<
Route
>
routes
;
p
ublic
TestRouteLocator
(
Collection
<
String
>
ignoredPaths
,
List
<
Route
>
routes
)
{
p
rivate
TestRouteLocator
(
Collection
<
String
>
ignoredPaths
,
List
<
Route
>
routes
)
{
this
.
ignoredPaths
=
ignoredPaths
;
this
.
ignoredPaths
=
ignoredPaths
;
this
.
routes
=
routes
;
this
.
routes
=
routes
;
}
}
...
...
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