Skip to content

Commit

Permalink
Unite HealthCheck Configuration Item.
Browse files Browse the repository at this point in the history
Unite HealthCheck Configuration Item.
  • Loading branch information
guanchao-yang authored and QilongZhang committed Jul 28, 2018
1 parent e29281d commit 9123016
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public SofaBootHealthIndicator sofaBootHealthIndicator() {
}

@Bean
@ConditionalOnProperty(prefix = "com.alipay.sofa.healthcheck.readiness", name = "enabled", matchIfMissing = true)
@ConditionalOnProperty(prefix = "com.alipay.sofa.healthcheck", name = "enabled", matchIfMissing = true)
public SofaBootReadinessCheckEndpoint readinessCheck() {
return new SofaBootReadinessCheckEndpoint(READINESS_CHECK_ENDPOINT_NAME, false);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @author qilong.zql
* @version 2.3.0
*/
@ConfigurationProperties(prefix = "com.alipay.sofa.healthcheck.readiness")
@ConfigurationProperties(prefix = "com.alipay.sofa.healthcheck")
public class SofaBootReadinessCheckEndpoint extends AbstractEndpoint<Health> {

private final HealthAggregator healthAggregator = new OrderedHealthAggregator();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* @author khotyn
* @version 2.3.0
*/
@ConfigurationProperties(prefix = "com.alipay.sofa.healthcheck.readiness")
@ConfigurationProperties(prefix = "com.alipay.sofa.healthcheck")
public class SofaBootReadinessCheckMvcEndpoint
extends
AbstractEndpointMvcAdapter<SofaBootReadinessCheckEndpoint> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @since 2.5.0
*/
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = SofaBootTestApplication.class, webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT, properties = { "com.alipay.sofa.healthcheck.readiness.enabled=false" })
@SpringBootTest(classes = SofaBootTestApplication.class, webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT, properties = { "com.alipay.sofa.healthcheck.enabled=false" })
public class HealthEndpointDisableConfigurationTest {

@Autowired
Expand Down

0 comments on commit 9123016

Please sign in to comment.