错误1:
I/O error on GET request for “http://user-service/hi”: user-service; nested exception is java.net.UnknownHostException: user-service
解决错误1的方法:
添加依赖:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
<version>2.1.2.RELEASE</version><!--服务器有可不写-->
</dependency>
错误2:访问网页出现服务器500错误
Thu Dec 26 16:54:54 CST 2019
There was an unexpected error (type=Internal Server Error, status=500).
Error resolving template [Country{
id=1, countryname='Angola', countrycode='AO'}Country{
id=2, countryname='Afghanistan', countrycode='AF'}Country{
id