'Replace ConditionalOnEnabledEndpoint for Spring Boot 2.6.4

I want to migrate old Spring project which is using this dependency:

org.springframework.boot.actuate.autoconfigure.endpoint.condition.ConditionalOnEnabledEndpoint

This Class requires import of:

'org.springframework.boot:spring-boot-actuator-autoconfigure:2.0.2.RELEASE'

I tried to use the latest version:

'org.springframework.boot:spring-boot-actuator-autoconfigure:2.6.4' but ConditionalOnEnabledEndpoint is not available. Do you know which class should be used?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source