代码拉取完成,页面将自动刷新
Fast-common,一个借鉴众多开源社区顶级项目、完全遵循阿里巴巴编码规约的简约、快速的Java Web开发脚手架公共模块
每次开发一个新项目时,都要配置一些重复的轮子,费时费力,所以干脆把一些轮子搭配起来,封装成一个个模块
想要什么功能,就引入什么模块,让开发更快速、更简单!
fast-common-all-mini:最小化开发模块
fast-common-all-standalone:单体架构开发模块
fast-common-all-cluster:微服务开发模块
tenant:
open: true
sa-token:
open: true
依赖 | 版本 |
---|---|
Spring Boot | 2.7.2 |
Spring Cloud | 2021.0.3 |
Spring Cloud Alibaba | 2021.0.1.0 |
Hutool | 5.8.8 |
Mybatis Plus | 3.5.2 |
JPA Hibernate | 5.6.10.Final |
Redis | 2.7.2 |
Sa-Token | 1.30.0 |
模块 | 介绍 |
---|---|
fast-common-all | 开发模式根模块 |
fast-common-all-mini | 最小化开发模块,不涉及数据库及权限 |
fast-common-all-standalone | 单体架构开发模块,涉及数据库及权限 |
fast-common-all-cluster | 微服务架构开发模块 |
fast-common-base | 基础模块,包含常量、公共父类、自定义异常、分页对象、接口通用返回对象等 |
fast-common-core | 核心模块,包含核心配置类、全局异常拦截器、工具类等 |
fast-common-feign | 基于Feign的微服务调用模块,并做了一些配置 |
fast-common-jpa | 基于JPA的ORM模块,并封装了一些方法 |
fast-common-mybatis-plus | 基于Mybatis-Plus的ORM模块,并做了一些配置 |
fast-common-redis | Redis模块,并做了一些配置 |
fast-common-sa-token | 基于Sa-Token的鉴权模块,并做了一些配置 |
fast-common-gateway | 基于Spring Cloud Alibaba Gateway和Sa-Token的网关模块,并做了一些配置 |
⭐导入依赖(以微服务架构开发为例)
根模块:
<properties>
<fast.common.version>1.3.1</fast.common.version>
<fast.upms.version>1.1</fast.upms.version>
<java.version>1.8</java.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.test.skip>true</maven.test.skip>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.gitee.lyf20200320</groupId>
<artifactId>fast-common</artifactId>
<version>${fast.common.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.gitee.lyf20200320</groupId>
<artifactId>fast-upms-api</artifactId>
<version>${fast.upms.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
子模块:
<dependencies>
<dependency>
<groupId>io.gitee.lyf20200320</groupId>
<artifactId>fast-upms-api</artifactId>
</dependency>
<dependency>
<groupId>io.gitee.lyf20200320</groupId>
<artifactId>fast-common-all-cluster</artifactId>
</dependency>
</dependencies>
微服务项目具体配置可参考fast-upms项目:fast-upms
注意:如果使用单体架构,需要加上以下依赖:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
<version>2.7.2</version>
</dependency>
Copyright (C) 2023 Li Yangfan Authors. All Rights Reserved.
仅供个人学习研究使用,未经授权,禁止任何商业用途!
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。