我要当国王无广告版
24.16 MB · 2025-12-19
大家好,我是 Java陈序员。
在日常开发中,无论是企业内部开发,还是个人独立开发,亦或是接私活,常常需要进行一些基础设施开发工作,十分繁琐。
这时,如果有一款脚手架开发平台,就能大大提高开发效率。
今天,给大家介绍一个轻量级的 Java 快速开发脚手架,包含前后端,可以说是接私活神器!
X-SpringBoot —— 一个轻量级的 Java 快速开发平台,用于快速构建中小型 API、RESTful API 项目,代码简洁,架构清晰,能快速开发项目并交付(接私活神器)。
功能特色:
技术栈:
1、克隆或下载项目源码
git clone https://github.com/yzcheng90/x-springboot.git
2、将项目以 Maven 工程的形式导入到 IDEA 中
3、项目代码结构
X-SpringBoot
├─doc
│ ├─db.sql 项目SQL语句
│ └─updateLog 更新日志
│
├─authentication 权限认证
├─common 公共模块
│ ├─annotation 自定义注解
│ ├─aspect 系统日志
│ ├─base base包
│ ├─exception 异常处理
│ ├─utils 一些工具类
│ └─xss XSS过滤
│
├─config 配置信息
├─interceptor token拦截器
│
├─modules 功能模块
│ ├─oss 文件服务模块
│ ├─sys 权限模块
│ └─gen 代码生成
│ └─apk 安卓APK管理
│ └─application 应用管理
│ └─msg 短信
│
├─Application 项目启动类
│
└─resources
├─mapper SQL 对应的 XML 文件
└─template 代码生成模板
4、创建数据库 x_springboot
CREATE DATABASE x_springboot CHARACTER SET utf8 COLLATE utf8_general_ci;
5、修改配置文件
src/main/resources/application-test.yml 中的 MySQL 连接配置信息spring:
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: root
url: jdbc:mysql://localhost:3306/x_springboot?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true
src/main/resources/application.yml 中的 Redis 连接配置信息spring:
data:
redis:
host: localhost
port: 6379
6、运行主启动类 com.suke.czx.Application 启动服务
1、克隆或下载项目源码
git clone https://github.com/yzcheng90/x-springboot-ui.git
2、进入项目目录并安装依赖
cd x-springboot-ui
npm install
3、运行服务
npm run dev
4、浏览器访问
http://localhost:9999/#/home
可以说,无论是企业内部系统、对外开放 API 服务,还是需要多租户管理的平台,X-SpringBoot 都能满足你的需求。快去试试吧~
项目地址:https://github.com/yzcheng90/X-SpringBoot
推荐的开源项目已经收录到 GitHub 项目,欢迎 Star:
https://github.com/chenyl8848/great-open-source-project
或者访问网站,进行在线浏览:
https://chencoding.top:8090/#/