Skip to content

Commit

Permalink
v6.1.1
Browse files Browse the repository at this point in the history
v6.1.1
  • Loading branch information
839128 authored Oct 13, 2020
2 parents a46e55c + 857da5d commit 25f2e1c
Show file tree
Hide file tree
Showing 2,769 changed files with 16,386 additions and 4,591 deletions.
6 changes: 3 additions & 3 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.aoju">
<img src="https://img.shields.io/badge/maven--central-v6.1.0-blue.svg?label=Maven%20Central" />
<img src="https://img.shields.io/badge/maven--central-v6.1.1-blue.svg?label=Maven%20Central" />
</a>
<a target="_blank" href="https://travis-ci.org/aoju/bus">
<img src="https://travis-ci.org/aoju/bus.svg?branch=master">
Expand Down Expand Up @@ -98,7 +98,7 @@ Bus (应用/服务总线) 是一个微服务套件、基础框架,它基于Jav
<dependency>
<groupId>org.aoju</groupId>
<artifactId>bus-all</artifactId>
<version>6.1.0</version>
<version>6.1.1</version>
</dependency>
```
或者单独使用某个组件
Expand All @@ -112,7 +112,7 @@ Bus (应用/服务总线) 是一个微服务套件、基础框架,它基于Jav

### Gradle
```
implementation 'org.aoju:bus-all:6.1.0'
implementation 'org.aoju:bus-all:6.1.1'
```

### Downlad
Expand Down
8 changes: 7 additions & 1 deletion bus-all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.aoju</groupId>
<artifactId>bus-all</artifactId>
<version>6.1.0</version>
<version>6.1.1</version>
<packaging>jar</packaging>

<name>${project.artifactId}</name>
Expand Down Expand Up @@ -68,6 +68,12 @@
<version>${project.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>bus-goalie</artifactId>
<version>${project.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>bus-health</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion bus-all/src/main/java/org/aoju/bus/Bus.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* </p>
*
* @author Kimi Liu
* @version 6.1.0
* @version 6.1.1
* @since JDK 1.8+
*/
public class Bus {
Expand Down
2 changes: 1 addition & 1 deletion bus-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.aoju</groupId>
<artifactId>bus-base</artifactId>
<version>6.1.0</version>
<version>6.1.1</version>
<packaging>jar</packaging>

<name>${project.artifactId}</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
* 异常信息拦截处理
*
* @author Kimi Liu
* @version 6.1.0
* @version 6.1.1
* @since JDK 1.8+
*/
@ControllerAdvice
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* 公共常量
*
* @author Kimi Liu
* @version 6.1.0
* @version 6.1.1
* @since JDK 1.8+
*/
public class Consts extends Normal {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* 系统响应码
*
* @author Kimi Liu
* @version 6.1.0
* @version 6.1.1
* @since JDK 1.8+
*/
public class ErrorCode {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* Entity 基本信息.
*
* @author Kimi Liu
* @version 6.1.0
* @version 6.1.1
* @since JDK 1.8+
*/
@Data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* Entity 实体
*
* @author Kimi Liu
* @version 6.1.0
* @version 6.1.1
* @since JDK 1.8+
*/
@Data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* 返回值公用类
*
* @author Kimi Liu
* @version 6.1.0
* @version 6.1.1
* @since JDK 1.8+
*/
@Data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* 授权公用类
*
* @author Kimi Liu
* @version 6.1.0
* @version 6.1.1
* @since JDK 1.8+
*/
@Data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* 返回结果公用
*
* @author Kimi Liu
* @version 6.1.0
* @version 6.1.1
* @since JDK 1.8+
*/
@Data
Expand Down
20 changes: 19 additions & 1 deletion bus-base/src/main/java/org/aoju/bus/base/entity/Tracer.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* 访问链路跟踪
*
* @author Kimi Liu
* @version 6.1.0
* @version 6.1.1
* @since JDK 1.8+
*/
@Data
Expand Down Expand Up @@ -70,4 +70,22 @@ public class Tracer extends OAuth2 {
@Transient
protected String x_remote_ip;

/**
* 请求者渠道类型: 1-WEB, 2-APP, 3-钉钉,4-微信小程序,5-其他;
*/
@Transient
protected String x_remote_channel;

/**
* 请求者终端类型: 1-PC, 2-Android, 3-iPhone, 4-iPad, 5-WinPhone, 6-HarmonyOS,7-其他
*/
@Transient
protected String x_remote_terminal;

/**
* 请求者浏览器信息: APP 原生则传系统版本
*/
@Transient
protected String x_remote_browser;

}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* BaseMapper 接口
*
* @author Kimi Liu
* @version 6.1.0
* @version 6.1.1
* @since JDK 1.8+
*/
public interface BaseMapper<T> extends Mapper<T> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* CoreMapper 接口
*
* @author Kimi Liu
* @version 6.1.0
* @version 6.1.1
* @since JDK 1.8+
*/
public interface Mapper<T> extends org.aoju.bus.mapper.common.Mapper<T> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* BaseService 接口
*
* @author Kimi Liu
* @version 6.1.0
* @version 6.1.1
* @since JDK 1.8+
*/
public interface BaseService<T> extends Service {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* Service 接口
*
* @author Kimi Liu
* @version 6.1.0
* @version 6.1.1
* @since JDK 1.8+
*/
public interface Service {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
* BaseService 接口实现
*
* @author Kimi Liu
* @version 6.1.0
* @version 6.1.1
* @since JDK 1.8+
*/
public class BaseServiceImpl<Mapper extends BaseMapper<T>, T extends BaseEntity>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* 基础请求封装
*
* @author Kimi Liu
* @version 6.1.0
* @version 6.1.1
* @since JDK 1.8+
*/
public class BaseController<Service extends BaseService<T>, T> extends Controller {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* 基础输出封装
*
* @author Kimi Liu
* @version 6.1.0
* @version 6.1.1
* @since JDK 1.8+
*/
public class Controller {
Expand Down
7 changes: 6 additions & 1 deletion bus-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.aoju</groupId>
<artifactId>bus-bom</artifactId>
<version>6.1.0</version>
<version>6.1.1</version>
<packaging>pom</packaging>

<name>${project.artifactId}</name>
Expand Down Expand Up @@ -60,6 +60,11 @@
<artifactId>bus-gitlab</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>bus-goalie</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>bus-health</artifactId>
Expand Down
22 changes: 11 additions & 11 deletions bus-cache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,29 @@

---
### 1. 多个@CacheKey属性为批量模式
```
```java
@Cached
Object func(@CacheKey("#arg0[#i]") List<Long> fIds, @CacheKey("#arg1[#i]") List<Long> aIds);
```
> 该模式会导致CacheX对方法参数做**笛卡尔积**, 结果将会计算产生大量的缓存`key`, 性能损耗较大, 因此不支持.
### 2. 以参数Map作为批量模式参数

```
```java
@Cached
Object func(@CacheKey("#arg0[#i]") Map<Long, Object> map);
```
> 同上: 如果将Map内所有的`Key`/`Value`进行交叉拼装为缓存`key`的话, 也会产生类似**笛卡尔积**的效果, 因此也不支持.
### 3. 以Map.keySet()作为批量模式参数
```
```java
@Cached
Object func(@CacheKey("#arg0.keySet()[#i]") Map<Long, Object> map);
```
> 这种模式不常用且实现复杂、性能损耗较大, 因此不支持.
### 4. 非标准容器作为批量模式参数
```
```java
@Cached
Object func(@CacheKey("#arg0[#i]") List<Long> ids) {
return Collections.emptyList();
Expand All @@ -53,15 +53,15 @@ Object func(@CacheKey("#arg0[#i]") List<Long> ids) {
## I. 简单使用
### 配置
- pom
```
```xml
<dependency>
<groupId>org.aoju.bus</groupId>
<artifactId>bus-cache</artifactId>
<version>6.1.0</version>
<version>6.1.1</version>
</dependency>
```
- XML注册
```
```xml
<!-- 启用自动代理: 如果已经开启则不必重复开启 -->
<aop:aspectj-autoproxy proxy-target-class="true"/>

Expand Down Expand Up @@ -104,7 +104,7 @@ org.aoju.bus.cache.provider.cache.Cache实现 -->
### @Cached
- 在需要走缓存的方法前添加`@Cached`注解.

```
```java
@Documented
@Target(value = ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
Expand Down Expand Up @@ -149,7 +149,7 @@ public @interface Cached {
### @Invalid
- 在需要失效缓存的方法前添加`@Invalid`注解.

```
```java
@Documented
@Target(value = ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
Expand Down Expand Up @@ -178,7 +178,7 @@ public @interface Invalid {
### @CacheKey
- 在需要作为缓存key的方法参数前添加`@CacheKey`注解.

```
```java
@Documented
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
Expand Down Expand Up @@ -209,7 +209,7 @@ public @interface CacheKey {
- 在需要走缓存的方法前添加`@CachedGet`注解.
> `@Cached`的不同在于`@CachedGet`只会从缓存内查询, 不会写入缓存(当缓存不存在时, 只是会取执行方法, 但不讲方法返回内容写入缓存).
```
```java
@Documented
@Target(value = ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
Expand Down
4 changes: 2 additions & 2 deletions bus-cache/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.aoju</groupId>
<artifactId>bus-cache</artifactId>
<version>6.1.0</version>
<version>6.1.1</version>
<packaging>jar</packaging>

<name>${project.artifactId}</name>
Expand All @@ -28,7 +28,7 @@
<guava.version>29.0-jre</guava.version>
<yaml.version>1.26</yaml.version>
<hession.version>4.0.63</hession.version>
<druid.version>1.1.23</druid.version>
<druid.version>1.1.24</druid.version>
<mysql.version>8.0.21</mysql.version>
</properties>

Expand Down
2 changes: 1 addition & 1 deletion bus-cache/src/main/java/org/aoju/bus/cache/CacheX.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* 缓存接口
*
* @author Kimi Liu
* @version 6.1.0
* @version 6.1.1
* @since JDK 1.8+
*/
public interface CacheX {
Expand Down
2 changes: 1 addition & 1 deletion bus-cache/src/main/java/org/aoju/bus/cache/Complex.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

/**
* @author Kimi Liu
* @version 6.1.0
* @version 6.1.1
* @since JDK 1.8+
*/
@Singleton
Expand Down
2 changes: 1 addition & 1 deletion bus-cache/src/main/java/org/aoju/bus/cache/Context.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

/**
* @author Kimi Liu
* @version 6.1.0
* @version 6.1.1
* @since JDK 1.8+
*/
public class Context {
Expand Down
2 changes: 1 addition & 1 deletion bus-cache/src/main/java/org/aoju/bus/cache/Hitting.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

/**
* @author Kimi Liu
* @version 6.1.0
* @version 6.1.1
* @since JDK 1.8+
*/
public interface Hitting {
Expand Down
Loading

0 comments on commit 25f2e1c

Please sign in to comment.