Skip to content

Commit

Permalink
v8.0.1
Browse files Browse the repository at this point in the history
v8.0.1
  • Loading branch information
839128 committed Jun 3, 2024
2 parents 417a1b5 + 274cc86 commit 01ec883
Show file tree
Hide file tree
Showing 817 changed files with 26,154 additions and 26,497 deletions.
58 changes: 29 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</p>
<p align="center">
<a target="_blank" href="https://search.maven.org/search?q=org.miaixz">
<img src="https://img.shields.io/badge/maven--central-v8.0.0-blue.svg?label=Maven%20Central" />
<img src="https://img.shields.io/badge/maven--central-v8.0.1-blue.svg?label=Maven%20Central" />
</a>
<a target="_blank" href="https://travis-ci.org/839128/bus">
<img src="https://app.travis-ci.com/839128/bus.svg?token=TZPNK5FQiKMp9cao3SnY&branch=main">
Expand Down Expand Up @@ -52,35 +52,35 @@ Bus (应用/服务总线) 是一个基础框架、服务套件,它基于Java17

## 组件信息

| 完成 | 模块 | 描述信息 |
|-----|---------------|---------------------------------------------------|
| [] | bus-all | 包含微服务所需的完整模块以及通用组件 |
| 完成 | 模块 | 描述信息 |
|-----|---------------|-------------------------------------------------|
| [] | bus-all | 包含微服务所需的完整模块以及通用组件 |
| [] | bus-base | 基础功能及base相关,实体(Entity),服务(Service),接口(Controller) |
| [] | bus-bom | 包含所有组建信息,当然可以通过配置按需加载等 |
| [] | bus-cache | 缓存服务及工具,支持redis,memcached,,hessian等 |
| [] | bus-core | 核心功能及工具类,包括常量、线程、类加载器、反射、集合、日期等常用工具 |
| [] | bus-cron | 定时器及定时任务等功能 |
| [] | bus-crypto | 加密解密,支持支持AES/DES/REA/MD5等常用加密算法 |
| [] | bus-extra | 扩展功能及文件操作,FTP/文件/二维码/短信相关支持 |
| [] | bus-health | 应用服务器健康信息,软件硬件信息采集等 |
| [] | bus-http | HTTP功能封装,根据业务场景可使用 Httpd/Httpx/Httpz 等方式 |
| [] | bus-image | 图像/影像应用服务,解析预览等 |
| [×] | bus-limiter | 请求限流,根据不同业务设置不同限流策略 |
| [] | bus-logger | 日志信息及功能,动态检测日志实现的方式,使日志使用个更加便利灵活简单 |
| [] | bus-mapper | 数据操作,在 MyBatis 的基础上只做增强不做改变,为简化开发、提高效率 |
| [] | bus-oauth | 第三方登录,已集成十多家第三方平台(国内外常用的基本都已包含) |
| [] | bus-pager | 数据分页,mybatis |
| [] | bus-office | office等相关转换及处理,POI封装实现,使Java操作Excel等文件变得简单 |
| [] | bus-opencv | 图像识别及分析,提供丰富的图形图像处理算法,跨平台支持等 |
| [] | bus-proxy | 公共代理,使动态代理变得简单 |
| [] | bus-sensitive | 敏感数据脱敏,对应用和使用者透明,业务逻辑无感知,通过配置集成 |
| [] | bus-setting | 设置工具类, 用于支持设置/配置 |
| [] | bus-shade | Entity,Service,Mapper等相关代码生成工具 |
| [] | bus-socket | 基础NIO/AIO通讯,Socket封装,支持TCP/UDP服务端 |
| [] | bus-starter | SpringBoot starter,spring相关配置,启动及相关配置文件信息 |
| [] | bus-storage | 文件存储组件,,支持阿里云、七牛,提供了工厂模式和注入两种集成方式 |
| [×] | bus-tracer | 轻量级分布式链路跟踪监控,日志及访问流程追踪以及内部调用链追踪 |
| [] | bus-validate | 参数校验,会默认拦截所有的标记有`@Valid`的方法或类 |
| [] | bus-bom | 包含所有组建信息,当然可以通过配置按需加载等 |
| [] | bus-cache | 缓存服务及工具,支持redis,memcached,,hessian等 |
| [] | bus-core | 核心功能及工具类,包括常量、线程、类加载器、反射、集合、日期等常用工具 |
| [] | bus-cron | 定时器及定时任务等功能 |
| [] | bus-crypto | 加密解密,支持支持AES/DES/REA/MD5等常用加密算法 |
| [] | bus-extra | 扩展功能及文件操作,FTP/文件/二维码/短信相关支持 |
| [] | bus-health | 应用服务器健康信息,软件硬件信息采集等 |
| [] | bus-http | HTTP功能封装,根据业务场景可使用 Httpd/Httpx/Httpz 等方式 |
| [] | bus-image | 图像/影像应用服务,解析预览等 |
| [] | bus-limiter | 服务限流/降级/提升热点,根据不同业务设置不同策略 |
| [] | bus-logger | 日志信息及功能,动态检测日志实现的方式,使日志使用个更加便利灵活简单 |
| [] | bus-mapper | 数据操作,在 MyBatis 的基础上只做增强不做改变,为简化开发、提高效率 |
| [] | bus-oauth | 第三方登录,已集成十多家第三方平台(国内外常用的基本都已包含) |
| [] | bus-pager | 数据分页,mybatis |
| [] | bus-office | office等相关转换及处理,POI封装实现,使Java操作Excel等文件变得简单 |
| [] | bus-opencv | 图像识别及分析,提供丰富的图形图像处理算法,跨平台支持等 |
| [] | bus-proxy | 公共代理,使动态代理变得简单 |
| [] | bus-sensitive | 敏感数据脱敏,对应用和使用者透明,业务逻辑无感知,通过配置集成 |
| [] | bus-setting | 设置工具类, 用于支持设置/配置 |
| [] | bus-shade | Entity,Service,Mapper等相关代码生成工具 |
| [] | bus-socket | 基础NIO/AIO通讯,Socket封装,支持TCP/UDP服务端 |
| [] | bus-starter | SpringBoot starter,spring相关配置,启动及相关配置文件信息 |
| [] | bus-storage | 文件存储组件,,支持阿里云、七牛,提供了工厂模式和注入两种集成方式 |
| [×] | bus-tracer | 轻量级分布式链路跟踪监控,日志及访问流程追踪以及内部调用链追踪 |
| [] | bus-validate | 参数校验,会默认拦截所有的标记有`@Valid`的方法或类 |

## 功能概述

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.0.0
8.0.1
2 changes: 1 addition & 1 deletion bus-all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.miaixz</groupId>
<artifactId>bus-all</artifactId>
<version>8.0.0</version>
<version>8.0.1</version>
<packaging>jar</packaging>

<name>${project.artifactId}</name>
Expand Down
4 changes: 2 additions & 2 deletions bus-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.miaixz</groupId>
<artifactId>bus-base</artifactId>
<version>8.0.0</version>
<version>8.0.1</version>
<packaging>jar</packaging>

<name>${project.artifactId}</name>
Expand Down Expand Up @@ -44,7 +44,7 @@
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<lombok.version>1.18.32</lombok.version>
<spring.boot.version>3.0.5</spring.boot.version>
<spring.boot.version>3.3.0</spring.boot.version>
<persistence.version>3.2.0-M2</persistence.version>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
package org.miaixz.bus.base.entity;

import jakarta.persistence.Transient;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import org.miaixz.bus.base.normal.Consts;
import org.miaixz.bus.core.data.ObjectId;
import org.miaixz.bus.core.lang.Normal;
Expand All @@ -42,7 +43,8 @@
* @author Kimi Liu
* @since Java 17+
*/
@Data
@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
public class BaseEntity extends Tracer {

Expand Down
6 changes: 4 additions & 2 deletions bus-base/src/main/java/org/miaixz/bus/base/entity/Entity.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
package org.miaixz.bus.base.entity;

import jakarta.persistence.Id;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

Expand All @@ -36,7 +37,8 @@
* @author Kimi Liu
* @since Java 17+
*/
@Data
@Getter
@Setter
public abstract class Entity implements Serializable {

private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,16 @@
********************************************************************************/
package org.miaixz.bus.base.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.*;

/**
* 返回值公用类
*
* @author Kimi Liu
* @since Java 17+
*/
@Data
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
Expand Down
6 changes: 4 additions & 2 deletions bus-base/src/main/java/org/miaixz/bus/base/entity/OAuth2.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,18 @@
package org.miaixz.bus.base.entity;

import jakarta.persistence.Transient;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
* 授权公用类
*
* @author Kimi Liu
* @since Java 17+
*/
@Data
@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
public class OAuth2 extends Entity {

Expand Down
6 changes: 4 additions & 2 deletions bus-base/src/main/java/org/miaixz/bus/base/entity/Result.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@
********************************************************************************/
package org.miaixz.bus.base.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.util.Collections;
import java.util.List;
Expand All @@ -37,7 +38,8 @@
* @author Kimi Liu
* @since Java 17+
*/
@Data
@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
public class Result<T> extends BaseEntity {

Expand Down
6 changes: 4 additions & 2 deletions bus-base/src/main/java/org/miaixz/bus/base/entity/Tracer.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,18 @@
package org.miaixz.bus.base.entity;

import jakarta.persistence.Transient;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
* 访问链路跟踪
*
* @author Kimi Liu
* @since Java 17+
*/
@Data
@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
public class Tracer extends OAuth2 {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* 此类未找到实现的情况下,采用默认实现
* 可以根据不同业务需求,继承此类实现对应业务逻辑即可
* 项目中可通过SPI自定义接入
* 例:META-INF/services/service.base.org.miaixz.bus.ErrorService
* 例:META-INF/services/org.miaixz.bus.base.service.ErrorService
* <code>
* org.miaixz.bus.xxx.ErrorService
* </code>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
********************************************************************************/
package org.miaixz.bus.base.service.impl;

import jakarta.annotation.Resource;
import org.miaixz.bus.base.entity.BaseEntity;
import org.miaixz.bus.base.entity.Result;
import org.miaixz.bus.base.mapper.BaseMapper;
Expand All @@ -37,6 +36,7 @@
import org.miaixz.bus.mapper.entity.Condition;
import org.miaixz.bus.pager.Page;
import org.miaixz.bus.pager.PageContext;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.ArrayList;
import java.util.List;
Expand All @@ -52,7 +52,7 @@
public class BaseServiceImpl<Mapper extends BaseMapper<T>, T extends BaseEntity>
implements BaseService<T> {

@Resource
@Autowired
protected Mapper mapper;

@Override
Expand Down
2 changes: 1 addition & 1 deletion bus-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.miaixz</groupId>
<artifactId>bus-bom</artifactId>
<version>8.0.0</version>
<version>8.0.1</version>
<packaging>pom</packaging>

<name>${project.artifactId}</name>
Expand Down
52 changes: 42 additions & 10 deletions bus-cache/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.miaixz</groupId>
<artifactId>bus-cache</artifactId>
<version>8.0.0</version>
<version>8.0.1</version>
<packaging>jar</packaging>

<name>${project.artifactId}</name>
Expand Down Expand Up @@ -44,12 +44,12 @@
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<lombok.version>1.18.32</lombok.version>
<spring.boot.version>3.0.5</spring.boot.version>
<spring.boot.version>3.3.0</spring.boot.version>
<guice.version>7.0.0</guice.version>
<jedis.version>5.1.2</jedis.version>
<jedis.version>5.1.3</jedis.version>
<xmemcached.version>2.4.8</xmemcached.version>
<curator.version>5.6.0</curator.version>
<guava.version>33.1.0-jre</guava.version>
<guava.version>33.2.1-jre</guava.version>
<hessian.version>4.0.66</hessian.version>
<mysql.version>8.3.0</mysql.version>
</properties>
Expand Down Expand Up @@ -82,12 +82,6 @@
<version>${guava.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>${jedis.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.caucho</groupId>
<artifactId>hessian</artifactId>
Expand All @@ -100,6 +94,26 @@
<version>${mysql.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>${jedis.version}</version>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
Expand All @@ -110,6 +124,10 @@
<groupId>aopalliance</groupId>
<artifactId>aopalliance</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand Down Expand Up @@ -142,13 +160,27 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
<exclusion>
<groupId>io.netty</groupId>
<artifactId>netty-handler</artifactId>
</exclusion>
<exclusion>
<groupId>io.netty</groupId>
<artifactId>netty-transport-native-epoll</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
<version>${spring.boot.version}</version>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@
********************************************************************************/
package org.miaixz.bus.cache.magic;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
* @author Kimi Liu
* @since Java 17+
*/
@Data
@Getter
@Setter
public class MethodHolder {

private Class<?> innerReturnType;
Expand Down
Loading

0 comments on commit 01ec883

Please sign in to comment.