1. P10:老师的mysql配置文件为my.cnf,我的改成my.conf
2. P16: 前端用npm install 命令报错(Error: Integrity checksum failed when using sha512: wanted sha512-o;我的解决方案:重启VSCode,重新npm install,问题解决)
3.P17:用逆向工程生成代码时,注释 @RequiresPermissions("${moduleName}:${pathName}:list")(老师事后才讲,浪费很多时间)
4. P18:gulimall-common中加入了Junit依赖,java错误找不到 Longblob类:改成Byte 因为数据库和java接收的不同.
5. P21: 报java: 找不到符号 符号: 方法 setOperation(java.lang.String) 位置: 类型为io.renren.modules.sys.entity.SysLogEn 将lombok版本设置为1.18.14可以解决, 报Caused by: com.alibaba.nacos.api.exception.NacosException: Client not connected,current status:STARTING spring-cloud-starter-alibaba-nacos-discovery的版本不能太高,设置为2.1.0.RELEASE可以解决(这里老师并没有设置版本)
6. P22:写完远程调用接口后,启动 GulimallMemberApplication 报 Error creating bean with name 'memberController'
在gulimall-common的pom文件中加入
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-ribbon</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-loadbalancer</artifactId>
<version>2.2.2.RELEASE</version>
</dependency>
(参考:java.lang.AbstractMethodError: org.springframework.cloud.netflix.ribbon.RibbonLoadBalancerClient.cho-CSDN博客)