Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring启动问题-java.lang.IllegalArgumentException:值必须仅包含有效字符_Java_Spring Boot_Spring Cloud - Fatal编程技术网

Spring启动问题-java.lang.IllegalArgumentException:值必须仅包含有效字符

Spring启动问题-java.lang.IllegalArgumentException:值必须仅包含有效字符,java,spring-boot,spring-cloud,Java,Spring Boot,Spring Cloud,将Spring Cloud(Finchley.M8)依赖项添加到Spring Boot(2.0.6.RELEASE)项目后,出现异常: Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar]: Factory method 'servl

将Spring Cloud(Finchley.M8)依赖项添加到Spring Boot(2.0.6.RELEASE)项目后,出现异常:

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar]: Factory method 'servletEndpointRegistrar' threw exception; nested exception is java.lang.IllegalArgumentException: Value must only contain valid chars
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:583)
    ... 23 common frames omitted
Caused by: java.lang.IllegalArgumentException: Value must only contain valid chars
    at org.springframework.util.Assert.isTrue(Assert.java:116)
    at org.springframework.boot.actuate.endpoint.EndpointId.<init>(EndpointId.java:44)
    at org.springframework.boot.actuate.endpoint.EndpointId.of(EndpointId.java:102)
    at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer$EndpointBean.<init>(EndpointDiscoverer.java:471)
原因:org.springframework.beans.beans实例化异常:未能实例化[org.springframework.boot.actuate.endpoint.web.servletendpointregister]:工厂方法“servletendpointregister”引发异常;嵌套异常为java.lang.IllegalArgumentException:值必须仅包含有效字符
位于org.springframework.beans.factory.support.SimpleInstallationStrategy.instantiate(SimpleInstallationStrategy.java:185)
位于org.springframework.beans.factory.support.ConstructorResolver.InstanceUsingFactoryMethod(ConstructorResolver.java:583)
... 省略23个公共帧
原因:java.lang.IllegalArgumentException:值必须仅包含有效字符
位于org.springframework.util.Assert.isTrue(Assert.java:116)
位于org.springframework.boot.actuate.endpoint.EndpointId.(EndpointId.java:44)
位于org.springframework.boot.actuate.endpoint.EndpointId.of(EndpointId.java:102)
位于org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer$EndpointBean。(EndpointDiscoverer.java:471)

经过一段时间的调查,我似乎应该使用不同版本的Spring Cloud

我从Finchley.M8改为Finchley.SR2,一切都开始正常工作

Spring Cloud+Spring Boot 2.0.x兼容性说明:

经过一段时间的调查,我似乎应该使用不同版本的Spring Cloud

我从Finchley.M8改为Finchley.SR2,一切都开始正常工作

Spring Cloud+Spring Boot 2.0.x兼容性说明:
对我来说,也有同样的问题。我的原因是在application.yml文件中,我使用了/符号作为端点


对我来说也有同样的问题。我的原因是在application.yml文件中,我使用了/符号作为端点


我在启动springCloudConfigServer项目时遇到了相同的异常

根本原因是application.properties中以下属性的值不正确(输入错误)

之前: management.endpoints.web.exposure.include=bus=refresh

我改变了它如下,我的项目成功启动
management.endpoints.web.exposure.include=总线刷新

启动springCloudConfigServer项目时,我遇到了相同的异常

根本原因是application.properties中以下属性的值不正确(输入错误)

之前: management.endpoints.web.exposure.include=bus=refresh

我改变了它如下,我的项目成功启动
management.endpoints.web.exposure.include=总线刷新

是的,通常您应该使用发布版本而不是milestonesYup,通常您应该使用发布版本而不是里程碑
management:
  endpoints:
    web:
      exposure:
        include: hystrix.stream