Giter Club home page Giter Club logo

szshfengying / mallplatform Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xiaoguiguo/mallplatform

0.0 0.0 0.0 243 KB

mallplatform项目是一个商城平台,包括前台商城系统(h5+pc)、商城后台系统和后台管理系统,基于SpringBoot+springcloud+MyBatis实现。 包含的系统有:账户系统、商户系统、交易系统、支付系统、商品系统、对账系统、搜索系统、优惠系统等一系列微服务模块,是一个完整的商城平台。

Home Page: https://github.com/doudouCN/mallplatform

TSQL 16.59% Java 83.41%

mallplatform's Introduction

自动生成代码

mybatis-generator,自动生成实体类、dao和mapper文件

resource目录下的GenerateScripts目录下的文件,在mall-generator项目下的pom.xml文件中配置各个数据库配置文件,会自动生成相对应的代码。
配置完文件之后,在mall-generate目录下使用maven命令:mvn install就可以生成代码咯。

1574341253054

使用lombok

自动生成的代码DTO中都带有set、get方法,使用@Data注解简化代码, Date类型都统一更换为LocalDateTime

引入hutool-all工具包

只有当hutool工具包中没有相关方法的时候,才推荐使用自己写的方法

多数据源配置

因为后管需要查看所有数据库中的数据(7个),所以使用多数据源,使用druid连接池,数据库的配置信息在admin项目下的application.yml
配置文件中。关闭数据源的自动加载,在@SpringBootApplication后面使用exclude
通过自定义创建数据源来创建各个数据库连接,对应的配置类在config目录下
@ConfigurationProperties ,推荐使用这个注解配置多数据源信息
添加测试用例

添加Rocketmq

添加mq的简单实用demo,之后在此基础上构建消息中心、消息处理工具等,使用rocketmq的4.4.0版本,
demo就是启动common项目的时候会发送消息到mq,pay项目中会消费这个消息,启动两个项目就可以看到。
rocketmq的可视化界面中也可以看到消息的情况

添加Redis

集成redis和shiro

mallplatform's People

Contributors

xiaoguiguo avatar gouge-length 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.