启动spring启动应用程序时出错

启动spring启动应用程序时出错,spring,spring-boot,Spring,Spring Boot,当我尝试启动spring boot应用程序时,出现了一个错误,原因是: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'servletEndpointRegistrar' defined in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/web/ServletE

当我尝试启动spring boot应用程序时,出现了一个错误,原因是:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'servletEndpointRegistrar' defined in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/web/ServletEndpointManagementContextConfiguration$WebMvcServletEndpointManagementContextConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar]: Factory method 'servletEndpointRegistrar' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'environmentEndpoint' defined in class path resource [org/springframework/cloud/autoconfigure/WritableEnvironmentEndpointAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.context.environment.WritableEnvironmentEndpoint]: Factory method 'environmentEndpoint' threw exception; nested exception is java.util.regex.PatternSyntaxException: Illegal repetition near index 26
.*PropertiesPropertySource {name='management.endpoint.env.keys-to-sanitize'}$
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'servletEndpointRegistrar' defined in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/web/ServletEndpointManagementContextConfiguration$WebMvcServletEndpointManagementContextConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar]: Factory method 'servletEndpointRegistrar' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'environmentEndpoint' defined in class path resource [org/springframework/cloud/autoconfigure/WritableEnvironmentEndpointAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.context.environment.WritableEnvironmentEndpoint]: Factory method 'environmentEndpoint' threw exception; nested exception is java.util.regex.PatternSyntaxException: Illegal repetition near index 26
.*PropertiesPropertySource {name='management.endpoint.env.keys-to-sanitize'}$


{是正则表达式引擎的一个指示器,表示您将要启动一个重复指示器,如{2,4}{是正则表达式引擎的一个指示器,表示您将要启动一个重复指示器,如{2,4}