十五、谷粒商城- 报错汇总
🌻🌻目录🌻🌻
- 一、谷粒商城- 分布式基础&环境搭建(1)
- 1.1 项目构建完clean报错
- 1.2 idea安装插件报错
- 二、谷粒商城- 快速开发之Spring Cloud Alibaba(2)
- 2.1 配置完renren-fast 启动后端 ,发现没法启动
- 2.2 报Diamond types are not supported at language level '5’
- 2.3 测试启动报错
- 2.4 端口被占用 Web server failed to start. Port 10000 was already in use.
一、谷粒商城- 分布式基础&环境搭建(1)
1.1 项目构建完clean报错
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
解决:忘记修改版本了
再次构建就是好的啦
1.2 idea安装插件报错
直接复制上面链接到下面就可以啦
二、谷粒商城- 快速开发之Spring Cloud Alibaba(2)
2.1 配置完renren-fast 启动后端 ,发现没法启动
解决:降版本与之前版本统一即可
2.2 报Diamond types are not supported at language level '5’
解决:
pom.xml加入如下即可:
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
2.3 测试启动报错
(1)
解决:加注解 @RunWith(SpringRunner.class)
(2)org/springframework/cloud/bootstrap/BootstrapApplicationListener has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
解决:
分析:登录 spring官网,查看springcloud和boot版本对应关系。
https://spring.io/projects/spring-cloud#overview
2.4 端口被占用 Web server failed to start. Port 10000 was already in use.
解决:
netstat -ano | findstr 10000
taskkill /F /pid 11748