forezp / SpringCloudLearning

《史上最简单的Spring Cloud教程源码》
17.85k stars 8.06k forks source link

第六章 配置中心 http://localhost:8888/foo/dev Whitelabel Error Page #19

Open hiei17 opened 6 years ago

hiei17 commented 6 years ago

这里是不是只要run config-server 一个模块?

我fork了本项目 git的配置 然后改成 spring.cloud.config.server.git.uri=https://github.com/hiei17/SpringCloudLearning/ spring.cloud.config.server.git.searchPaths=respo spring.cloud.config.label=master spring.cloud.config.server.git.username=hiei17 spring.cloud.config.server.git.password=我的登录密码

hiei17 commented 6 years ago

我知道了 必须1.8

fengxianhua126 commented 6 years ago

是这样吗?

hiei17 commented 6 years ago

后来换成1.8 就通 要是仓库没密码的话 用户名密码这2行也可以不用

fengxianhua126 commented 6 years ago

你说的必须1.8 是

UTF-8 UTF-8 1.8

吗?

fengxianhua126 commented 6 years ago

我用https://blog.csdn.net/forezp/article/details/70037291的源码,访问http://localhost:8888/foo/dev也是这个错误

fengxianhua126 commented 6 years ago

pom.xml和ConfigServerApplication.java application.properties这三个文件都是直接拖过来的,运行起来也没报错。但是访问就报错。我看了pom.xml用的也是他的1.8

fengxianhua126 commented 6 years ago

郁闷了

fengxianhua126 commented 6 years ago

我用的eclipse,你用eclipse试试