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
04c72a45
Commit
04c72a45
authored
Nov 10, 2017
by
Johannes Edmeier
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into 2.x
parents
d1ed8b78
8143743d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
SpringBootAdminClientAutoConfiguration.java
...client/config/SpringBootAdminClientAutoConfiguration.java
+1
-0
SpringBootAdminClientAutoConfigurationTest.java
...nt/config/SpringBootAdminClientAutoConfigurationTest.java
+7
-0
No files found.
spring-boot-admin-starter-client/src/main/java/de/codecentric/boot/admin/client/config/SpringBootAdminClientAutoConfiguration.java
View file @
04c72a45
...
@@ -45,6 +45,7 @@ import static org.springframework.boot.autoconfigure.condition.ConditionalOnWebA
...
@@ -45,6 +45,7 @@ import static org.springframework.boot.autoconfigure.condition.ConditionalOnWebA
@Configuration
@Configuration
@EnableConfigurationProperties
({
ClientProperties
.
class
,
InstanceProperties
.
class
})
@EnableConfigurationProperties
({
ClientProperties
.
class
,
InstanceProperties
.
class
})
@ConditionalOnWebApplication
@Conditional
(
SpringBootAdminClientEnabledCondition
.
class
)
@Conditional
(
SpringBootAdminClientEnabledCondition
.
class
)
@AutoConfigureAfter
(
WebMvcEndpointManagementContextConfiguration
.
class
)
@AutoConfigureAfter
(
WebMvcEndpointManagementContextConfiguration
.
class
)
public
class
SpringBootAdminClientAutoConfiguration
{
public
class
SpringBootAdminClientAutoConfiguration
{
...
...
spring-boot-admin-starter-client/src/test/java/de/codecentric/boot/admin/client/config/SpringBootAdminClientAutoConfigurationTest.java
View file @
04c72a45
...
@@ -40,6 +40,13 @@ public class SpringBootAdminClientAutoConfigurationTest {
...
@@ -40,6 +40,13 @@ public class SpringBootAdminClientAutoConfigurationTest {
assertThat
(
context
.
getBeansOfType
(
ApplicationRegistrator
.
class
)).
isEmpty
();
assertThat
(
context
.
getBeansOfType
(
ApplicationRegistrator
.
class
)).
isEmpty
();
}
}
@Test
public
void
nonWebEnvironment
()
{
load
(
"spring.main.admin.url:http://localhost:8081"
,
"spring.boot.admin.client.enabled:true"
,
"spring.main.web-environment:false"
);
assertThat
(
context
.
getBeansOfType
(
ApplicationRegistrator
.
class
).
isEmpty
());
}
private
void
load
(
final
String
...
environment
)
{
private
void
load
(
final
String
...
environment
)
{
SpringApplication
springApplication
=
new
SpringApplication
(
TestClientApplication
.
class
);
SpringApplication
springApplication
=
new
SpringApplication
(
TestClientApplication
.
class
);
springApplication
.
addInitializers
(
springApplication
.
addInitializers
(
...
...
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