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
8c92a6a1
Commit
8c92a6a1
authored
Feb 11, 2018
by
Johannes Edmeier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update to latest snapshot of boot
parent
4c8196c5
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
25 additions
and
38 deletions
+25
-38
pom.xml
pom.xml
+1
-1
DefaultApplicationFactory.java
.../admin/client/registration/DefaultApplicationFactory.java
+3
-3
DefaultApplicationFactoryTest.java
...in/client/registration/DefaultApplicationFactoryTest.java
+7
-13
ServletApplicationFactoryTest.java
...in/client/registration/ServletApplicationFactoryTest.java
+7
-13
application.yml
...ot-admin-sample-eureka/src/main/resources/application.yml
+1
-1
application.yml
...-admin-sample-reactive/src/main/resources/application.yml
+1
-1
application.yml
...t-admin-sample-servlet/src/main/resources/application.yml
+2
-2
application.yml
...-boot-admin-sample-war/src/main/resources/application.yml
+2
-2
AdminServerProperties.java
...ntric/boot/admin/server/config/AdminServerProperties.java
+1
-2
No files found.
pom.xml
View file @
8c92a6a1
...
...
@@ -27,7 +27,7 @@
<url>
https://github.com/codecentric/spring-boot-admin/
</url>
<properties>
<revision>
2.0.0-SNAPSHOT
</revision>
<spring-boot.version>
2.0.0.
RC1
</spring-boot.version>
<spring-boot.version>
2.0.0.
BUILD-SNAPSHOT
</spring-boot.version>
<spring-cloud.version>
Finchley.BUILD-SNAPSHOT
</spring-cloud.version>
<hazelcast-tests.version>
3.9.2
</hazelcast-tests.version>
<java.version>
1.8
</java.version>
...
...
spring-boot-admin-client/src/main/java/de/codecentric/boot/admin/client/registration/DefaultApplicationFactory.java
View file @
8c92a6a1
...
...
@@ -226,10 +226,10 @@ public class DefaultApplicationFactory implements ApplicationFactory {
@EventListener
public
void
onWebServerInitialized
(
WebServerInitializedEvent
event
)
{
if
(
"server"
.
equals
(
event
.
getServerId
()))
{
String
name
=
event
.
getApplicationContext
().
getServerNamespace
();
if
(
"server"
.
equals
(
name
)
||
!
StringUtils
.
hasText
(
name
))
{
localServerPort
=
event
.
getWebServer
().
getPort
();
}
if
(
"management"
.
equals
(
event
.
getServerId
()))
{
}
else
if
(
"management"
.
equals
(
name
))
{
localManagementPort
=
event
.
getWebServer
().
getPort
();
}
}
...
...
spring-boot-admin-client/src/test/java/de/codecentric/boot/admin/client/registration/DefaultApplicationFactoryTest.java
View file @
8c92a6a1
...
...
@@ -26,10 +26,10 @@ import org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointPr
import
org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties
;
import
org.springframework.boot.actuate.endpoint.web.PathMappedEndpoints
;
import
org.springframework.boot.autoconfigure.web.ServerProperties
;
import
org.springframework.boot.web.context.WebServerApplicationContext
;
import
org.springframework.boot.web.context.WebServerInitializedEvent
;
import
org.springframework.boot.web.server.Ssl
;
import
org.springframework.boot.web.server.WebServer
;
import
org.springframework.context.ApplicationContext
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThatThrownBy
;
...
...
@@ -194,24 +194,18 @@ public class DefaultApplicationFactoryTest {
}
private
static
class
TestWebServerInitializedEvent
extends
WebServerInitializedEvent
{
private
final
String
serverId
;
private
final
WebServer
server
;
private
final
WebServer
server
=
mock
(
WebServer
.
class
)
;
private
final
WebServer
ApplicationContext
context
=
mock
(
WebServerApplicationContext
.
class
)
;
private
TestWebServerInitializedEvent
(
String
serverId
,
int
port
)
{
private
TestWebServerInitializedEvent
(
String
name
,
int
port
)
{
super
(
mock
(
WebServer
.
class
));
this
.
serverId
=
serverId
;
this
.
server
=
mock
(
WebServer
.
class
);
when
(
server
.
getPort
()).
thenReturn
(
port
);
when
(
context
.
getServerNamespace
()).
thenReturn
(
name
);
}
@Override
public
ApplicationContext
getApplicationContext
()
{
return
null
;
}
@Override
public
String
getServerId
()
{
return
this
.
serverId
;
public
WebServerApplicationContext
getApplicationContext
()
{
return
context
;
}
@Override
...
...
spring-boot-admin-client/src/test/java/de/codecentric/boot/admin/client/registration/ServletApplicationFactoryTest.java
View file @
8c92a6a1
...
...
@@ -26,9 +26,9 @@ import org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointPr
import
org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties
;
import
org.springframework.boot.actuate.endpoint.web.PathMappedEndpoints
;
import
org.springframework.boot.autoconfigure.web.ServerProperties
;
import
org.springframework.boot.web.context.WebServerApplicationContext
;
import
org.springframework.boot.web.context.WebServerInitializedEvent
;
import
org.springframework.boot.web.server.WebServer
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.mock.web.MockServletContext
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
...
...
@@ -118,24 +118,18 @@ public class ServletApplicationFactoryTest {
}
private
static
class
TestWebServerInitializedEvent
extends
WebServerInitializedEvent
{
private
final
String
serverId
;
private
final
WebServer
server
;
private
final
WebServer
server
=
mock
(
WebServer
.
class
)
;
private
final
WebServer
ApplicationContext
context
=
mock
(
WebServerApplicationContext
.
class
)
;
private
TestWebServerInitializedEvent
(
String
serverId
,
int
port
)
{
private
TestWebServerInitializedEvent
(
String
name
,
int
port
)
{
super
(
mock
(
WebServer
.
class
));
this
.
serverId
=
serverId
;
this
.
server
=
mock
(
WebServer
.
class
);
when
(
server
.
getPort
()).
thenReturn
(
port
);
when
(
context
.
getServerNamespace
()).
thenReturn
(
name
);
}
@Override
public
ApplicationContext
getApplicationContext
()
{
return
null
;
}
@Override
public
String
getServerId
()
{
return
this
.
serverId
;
public
WebServerApplicationContext
getApplicationContext
()
{
return
context
;
}
@Override
...
...
spring-boot-admin-samples/spring-boot-admin-sample-eureka/src/main/resources/application.yml
View file @
8c92a6a1
...
...
@@ -18,4 +18,4 @@ management:
expose
:
"
*"
endpoint
:
health
:
show-details
:
true
show-details
:
ALWAYS
spring-boot-admin-samples/spring-boot-admin-sample-reactive/src/main/resources/application.yml
View file @
8c92a6a1
...
...
@@ -12,7 +12,7 @@ management:
expose
:
"
*"
endpoint
:
health
:
show-details
:
true
show-details
:
ALWAYS
spring
:
application
:
...
...
spring-boot-admin-samples/spring-boot-admin-sample-servlet/src/main/resources/application.yml
View file @
8c92a6a1
---
info
:
scm-url
:
"
@scm.url@"
build-url
:
"
http://travis-ci.org/@env.TRAVIS_REPO_SLUG@/builds/@env.TRAVIS_BUILD_ID@"
build-url
:
"
http://travis-ci.org/@env.TRAVIS_REPO_SLUG@/builds/@env.TR
x
AVIS_BUILD_ID@"
logging
:
file
:
"
target/boot-admin-sample-servlet.log"
...
...
@@ -12,7 +12,7 @@ management:
expose
:
"
*"
endpoint
:
health
:
show-details
:
true
show-details
:
ALWAYS
spring
:
application
:
...
...
spring-boot-admin-samples/spring-boot-admin-sample-war/src/main/resources/application.yml
View file @
8c92a6a1
...
...
@@ -12,4 +12,4 @@ management:
expose
:
"
*"
endpoint
:
health
:
show-details
:
true
\ No newline at end of file
show-details
:
ALWAYS
\ No newline at end of file
spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/config/AdminServerProperties.java
View file @
8c92a6a1
...
...
@@ -52,8 +52,7 @@ public class AdminServerProperties {
* If the path differs from the id you can specify this as id:path (e.g. health:ping).
*/
private
String
[]
probedEndpoints
=
{
"health"
,
"env"
,
"metrics"
,
"httptrace:trace"
,
"threaddump:dump"
,
"jolokia"
,
"info"
,
"logfile"
,
"refresh"
,
"flyway"
,
"liquibase"
,
"heapdump"
,
"loggers"
,
"auditevents"
};
"info"
,
"logfile"
,
"refresh"
,
"flyway"
,
"liquibase"
,
"heapdump"
,
"loggers"
,
"auditevents"
};
public
void
setContextPath
(
String
contextPath
)
{
this
.
contextPath
=
PathUtils
.
normalizePath
(
contextPath
);
...
...
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