研究Spring Cloud Data Flow時,啓動Docker Compose的時候發現報錯以下:java
dataflow-server | java.lang.RuntimeException: Error reading from URL [http://bit.ly/Dearborn-SR1-task-applications-maven] dataflow-server | at org.springframework.cloud.dataflow.registry.service.DefaultAppRegistryService.loadProperties(DefaultAppRegistryService.java:284) dataflow-server | at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) dataflow-server | at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) dataflow-server | at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) dataflow-server | at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) dataflow-server | at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) dataflow-server | at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) dataflow-server | at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) dataflow-server | at org.springframework.cloud.dataflow.registry.service.DefaultAppRegistryService.importAll(DefaultAppRegistryService.java:297) dataflow-server | at org.springframework.cloud.dataflow.registry.service.DefaultAppRegistryService$$FastClassBySpringCGLIB$$a8bae4.invoke(<generated>) dataflow-server | at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) dataflow-server | at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749) dataflow-server | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) dataflow-server | at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294) dataflow-server | at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98) dataflow-server | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) dataflow-server | at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688 ...
解決方案,修改docker-compose.yml中bit.ly相關的url爲bit.ly.xiaoyou.biz, 同時手工下載相應的文件放到裏邊。spring