Skip to content

Commit 2a1ccfe

Browse files
author
Dave Syer
committed
Allow /mappings to be disabled (fixes gh-1185)
1 parent 54a23f9 commit 2a1ccfe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/RequestMappingEndpoint.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import java.util.Map;
2525

2626
import org.springframework.beans.BeansException;
27+
import org.springframework.boot.context.properties.ConfigurationProperties;
2728
import org.springframework.context.ApplicationContext;
2829
import org.springframework.context.ApplicationContextAware;
2930
import org.springframework.web.method.HandlerMethod;
@@ -35,6 +36,7 @@
3536
*
3637
* @author Dave Syer
3738
*/
39+
@ConfigurationProperties(prefix = "endpoints.mappings", ignoreUnknownFields = false)
3840
public class RequestMappingEndpoint extends AbstractEndpoint<Map<String, Object>>
3941
implements ApplicationContextAware {
4042

0 commit comments

Comments
 (0)