码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 谷粒商城错误总结


    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文件中加入

    1. com.alibaba.cloud
    2. spring-cloud-starter-alibaba-nacos-discovery
    3. org.springframework.cloud
    4. spring-cloud-starter-netflix-ribbon
    5. org.springframework.cloud
    6. spring-cloud-loadbalancer
    7. 2.2.2.RELEASE

    (参考:java.lang.AbstractMethodError: org.springframework.cloud.netflix.ribbon.RibbonLoadBalancerClient.cho-CSDN博客)

    7. P23: 无法实时加载 nacos 中 gulimall-coupons.properties 配置的信息

    在gulimall-common的pom文件中加入

    1. org.springframework.cloud
    2. spring-cloud-starter-bootstrap
    3. 3.1.6

    8. P27: 启动 gulimall-gateway服务 报   Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

    解决方法:在 gulimall-gateway启动类的

    @SpringBootApplication 注解后面排除数据源,如下
    1. @EnableDiscoveryClient
    2. @SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
    3. public class GulimallGatewayApplication {
    4. public static void main(String[] args) {
    5. SpringApplication.run(GulimallGatewayApplication.class, args);
    6. }
    7. }

  • 相关阅读:
    Sui第五轮资助: 17个项目共获105万美元资助金
    Vue学习之--------深入理解Vuex、原理详解、实战应用(2022/9/1)
    AspNetCore&云效Flow持续集成
    Docker镜像详解(手拉手教你上传至阿里云,发布到私有库)
    Triton Inference Server 环境配置
    四足步行机器人的结构设计及仿真
    手记系列之六 ----- 分享个人使用kafka经验
    oracle的使用sqlplush
    【毕业设计】 基于java+SSH+JSP的保险业务管理系统设计与实现(毕业论文+程序源码)——保险业务管理系统
    Oracle/PLSQL: Substr Function
  • 原文地址:https://blog.csdn.net/weixin_56311692/article/details/133659436
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号