Giter VIP home page Giter VIP logo

gulimall's Introduction

谷粒商城

基于Java项目《谷粒商城》架构师级Java项目实战,对标阿里P6-P7,全网最强教学视频的实现代码。

软件版本

  1. JDK(1.8):
  2. MYSQL(5.7):
  3. Redis(7.2):

项目技术

  1. Maven(3.6.3):

  2. Spring-Boot(2.3.3.RELEASE):

  3. Spring-Cloud(Hoxton.SR7):

  4. Spring-Cloud-Alibaba2.1.0.RELEASE):

    使用组件:

    1. Nacos1.1.3):(注册中心配置中心)一个更易于构建云原生应用的动态服务发现、配置管理和服务管理平台。

      Nacos使用案例

    2. Alibaba Cloud OSS:对象存储服务

    3. Sentinel:把流量作为切入点,从流量控制、熔断降级、系统负载保护等多个维度保护服务的稳定性。

    4. Seata:阿里巴巴开源产品,一个易于使用的高性能微服务分布式事务解决方案。

  5. Spring-Cloud-Ribbon:负载均衡

  6. Spring-Cloud-Feign:声明式HTTP客户端(调用远程服务)

  7. Spring-Cloud-Geteway:网关

  8. Spring-Cloud-Sleuth:调用链监控

快速构建管理系统

人人开源/renren-fast-vue

人人开源/renren-fast

人人开源/renren-generator

遇到的问题

  1. 使用VirtualBox遇到问题不知道怎么解决,改为使用VM ware。

  2. 使用人人开源生成代码时,一页是默认10行,记得勾选所有的**(看到p76了才发现代码不全。。。。)**。

  3. 导入人人开源管理后台时,提示父类模块不正确。 在子模块的<parent>标签下增加<relativePath/>即可。

  4. 谷粒商城 p16 node-sass报错最简单解决方法

  5. p17,common模块导入人人开源类的时候,需要自己解决类问题(下一P老师会解决),可以参考以下maven坐标:

    <!-- https://mvnrepository.com/artifact/javax.validation/validation-api -->
    <dependency>
        <groupId>javax.validation</groupId>
        <artifactId>validation-api</artifactId>
        <version>2.0.1.Final</version>
    </dependency>
    
    <!-- https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api -->
    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>javax.servlet-api</artifactId>
        <version>4.0.1</version>
        <scope>provided</scope>
    </dependency>
    
    <dependency><!-- 人人开源的包 -->
        <groupId>commons-lang</groupId>
        <artifactId>commons-lang</artifactId>
        <version>2.6</version>
    </dependency>
  6. Spring-Cloud-Alibaba版本问题,需要处理好。

  7. EasyConnect软件会占用10000端口。

  8. p46,将人人开源后端注册到nacos出现问题。

    1. 将人人开源pom.xml的springboot版本切换为2.3.3.RELEASE
    2. 按照p47的说明,修改io.renren.config.CorsConfig.java,将跨域配置注释掉就行了。
  9. p62,maven坐标aliyun-oss-spring-boot-starter引入失败问题,参考阿里云OSS对象存储依赖引入失败 怎么解决,个人实测只需要加上版本号就行了。

    <dependency>
        <groupId>com.alibaba.cloud</groupId>
        <artifactId>aliyun-oss-spring-boot-starter</artifactId>
        <version>1.0.0</version>
    </dependency>
    
  10. p66,没有org.hibernate.validator.constraints.URL需要在gulimall-common中导包,坐标如下:

<!-- https://mvnrepository.com/artifact/org.hibernate.validator/hibernate-validator -->
<dependency>
    <groupId>org.hibernate.validator</groupId>
    <artifactId>hibernate-validator</artifactId>
    <version>6.2.0.Final</version>
</dependency>
  1. 如果git仓库是公开的,不要把OSS用户的密钥上传上去了。

  2. 谷粒商城接口文档

  3. p84报错pubsub,使用cnpm install --save pubsub-js安装依赖,然后在src/main.js中添加如下内容:

    import PubSub from 'pubsub-js'
    Vue.prototype.PubSub = PubSub
  4. p100,规格404,修改前端项目的/src/router/index.js文件,在mainRoutes下的children里加上以下内容:

    ,{ path: '/product-attrupdate', component: _import('modules/product/attrupdate'), name: 'attr-update', meta: { title: '规格维护', isTab: true } }
  5. p109,测试数据地址

  6. p122,分词器下载地址

  7. p123,不用更换yum源,换了反而更卡

  8. p126,elastisearch依赖不正确,导入以下maven坐标:

    <dependency>
        <groupId>org.elasticsearch</groupId>
        <artifactId>elasticsearch</artifactId>
        <version>7.4.2</version>
    </dependency>
    <dependency>
        <groupId>org.elasticsearch.client</groupId>
        <artifactId>elasticsearch-rest-client</artifactId>
        <version>7.4.2</version>
    </dependency>
    
    <dependency>
        <groupId>org.elasticsearch.client</groupId>
        <artifactId>elasticsearch-rest-high-level-client</artifactId>
        <version>7.4.2</version>
    </dependency>

gulimall's People

Contributors

insectmk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.