来自Inetutilsproperties的spring bean创建中的异常

时间:2018-06-15 03:11:28

标签: spring spring-boot spring-cloud-netflix

请帮我解决以下问题:

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cloud.commons.util.InetUtilsProperties#3311b9b9': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'SPRING_UTIL_TIMEOUT_SEC:1' in value "spring.util.timeout.sec:${SPRING_UTIL_TIMEOUT_SEC:1}"
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:372)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1268)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:299)

Spring有些如何解析SPRING_UTIL_TIMEOUT_SEC:1。

0 个答案:

没有答案