3 Star 9 Fork 2

sugar / sugarweb

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

sugarweb

介绍

sugarweb是按照“框架”与“组件”这两个概念构建的一套整合方案。sugarweb整合了web应用所需通用框架,并根据业务共性提供一套可插拔的组件实现。

技术选型

  • 基础环境:jdk21, maven3.8.8, redis6.x, mysql8.x
  • 基础依赖框架:springboot3.x, spring-security, spring-data-jpa, redisson, guava, lombok
  • 组件技术选型: quartz, aws-s3, springdoc-openapi, spring-boot-starter-mail

项目结构

模组 描述 模块依赖关系
base-framework 基础框架整合
component-dictionary 数据字典组件 base-framework
component-email 邮件组件 base-framework, component-oss
component-openapi 接口文档 base-framework
component-oss 文件存储 base-framework
component-param 系统参数组件 base-framework
component-scheduler 定时任务组件 base-framework
component-server 服务组件 base-framework
service-uims 用户管理实现(使用案例) 全部

sugarweb做了什么

  • base-framework:这里整合了主要常用核心框架并进行了通用功能封装,涉及异常处理,持久化框架整合,缓存框架整合,授权认证整合。
  • component-dictionary:字典组件,提供了字典(group,code,name)的增删改查功能,自动注册功能。
  • component-email:邮件组件,提供了邮件发送的基础功能。
  • component-openapi:接口文档组件,提供对外接口信息。
  • component-oss:文件存储组件,提供文件存储功能,以及文件与业务绑定功能。
  • component-param:参数组件,提供了参数(key,value)的增删改查功能,自动注册功能。
  • component-scheduler:定时任务组件,提供了定时任务注册,启停,执行功能,自动注册功能,动态参数配置。
  • component-server:服务组件,提供了服务端访问请求日志功能,异常日志功能。
  • service-uims:用户管理服务,提供用户管理,角色管理,菜单管理,登录登出接口。

sugarweb使用说明

这是一套使用整合方案,并不建议使用maven整合,而是直接下载源码或者拉取分支根据自身业务情况进行部分调整后使用。

安装教程

  1. 直接下载或使用git拉取代码。
  2. 检测本地环境,建议jdk21, maven3.8.8, redis6.x, mysql8.x。
  3. 修改service-uims模块下的application-dev.yml,配置数据库,redis,minio信息。
  4. 项目中使用了querydsl代码生成技术,需要maven执行compile后才能启动。
  5. 启动服务后,使用接口信息url配合接口调用工具进行测试,http://localhost:8889/uims/v3/api-docs

交流与讨论

如果遇到什么问题,或者有更好的建议,欢迎进群讨论。

sugar交流qq群:827838560。

MIT License Copyright (c) 2023 xxd11111 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

sugarweb是按照“框架”与“组件”这两个概念构建的一套整合方案。sugarweb整合了web应用所需通用框架,并根据业务共性提供一套通用组件。 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/sugarxr/sugarweb.git
git@gitee.com:sugarxr/sugarweb.git
sugarxr
sugarweb
sugarweb
dev

搜索帮助