更新author

This commit is contained in:
smallchill 2018-12-29 18:43:11 +08:00
parent b6866d4691
commit ecbce36218
98 changed files with 98 additions and 98 deletions

View File

@ -26,7 +26,7 @@ import org.springframework.context.annotation.EnableAspectJAutoProxy;
/**
* 配置类
* @author smallchill
* @author Chill
*/
@Slf4j
@Configuration

View File

@ -33,7 +33,7 @@ import java.util.List;
/**
* WEB配置
* @author smallchill
* @author Chill
*/
@Slf4j
@Configuration

View File

@ -29,7 +29,7 @@ import org.springframework.context.annotation.Profile;
/**
* mybatisplus 配置
*
* @author smallchill
* @author Chill
*/
@Configuration
@MapperScan("org.springblade.**.mapper.**")

View File

@ -36,7 +36,7 @@ import java.time.Duration;
/**
* RedisTemplate 配置
*
* @author smallchill
* @author Chill
*/
@EnableCaching
@Configuration

View File

@ -25,7 +25,7 @@ import org.springframework.retry.interceptor.RetryOperationsInterceptor;
/**
* 重试机制
*
* @author smallchill
* @author Chill
*/
@Slf4j
@Configuration

View File

@ -34,7 +34,7 @@ import java.util.List;
/**
* Blade控制器封装类
*
* @author smallchill
* @author Chill
*/
public class BladeController {

View File

@ -28,7 +28,7 @@ import java.util.Enumeration;
/**
* feign 传递Request header
*
* @author smallchill
* @author Chill
*/
@Slf4j
public class BladeFeignRequestHeaderInterceptor implements RequestInterceptor {

View File

@ -39,7 +39,7 @@ import java.util.concurrent.TimeUnit;
/**
* 自定义Feign的隔离策略
*
* @author smallchill
* @author Chill
*/
public class FeignHystrixConcurrencyStrategy extends HystrixConcurrencyStrategy {

View File

@ -25,7 +25,7 @@ import java.util.Date;
/**
* 上传文件封装
* @author smallchill
* @author Chill
*/
public class BladeFile {
/**

View File

@ -28,7 +28,7 @@ import java.util.Date;
/**
* 文件代理类
*
* @author smallchill
* @author Chill
*/
public class BladeFileProxyFactory implements IFileProxy {

View File

@ -24,7 +24,7 @@ import java.util.*;
/**
* 文件工具类
*
* @author smallchill
* @author Chill
*/
public class BladeFileUtil {

View File

@ -20,7 +20,7 @@ import java.io.File;
/**
* 文件管理类
*
* @author smallchill
* @author Chill
*/
public class FileProxyManager {
private IFileProxy defaultFileProxyFactory = new BladeFileProxyFactory();

View File

@ -20,7 +20,7 @@ import java.io.File;
/**
* 文件代理接口
*
* @author smallchill
* @author Chill
*/
public interface IFileProxy {

View File

@ -27,7 +27,7 @@ import org.springframework.web.method.support.ModelAndViewContainer;
/**
* Token转化BladeUser
*
* @author smallchill
* @author Chill
*/
@Slf4j
public class TokenArgumentResolver implements HandlerMethodArgumentResolver {

View File

@ -29,7 +29,7 @@ import java.util.function.Function;
/**
* 项目启动器搞定环境变量问题
*
* @author smallchill
* @author Chill
*/
public class BladeApplication {

View File

@ -21,7 +21,7 @@ import org.springframework.stereotype.Component;
/**
* 系统启动完毕后执行
*
* @author smallchill
* @author Chill
*/
@Component
public class BladeLineRunner implements CommandLineRunner {

View File

@ -27,7 +27,7 @@ import org.springframework.util.StringUtils;
/**
* 项目启动事件通知
*
* @author smallchill
* @author Chill
*/
@Slf4j
@Configuration

View File

@ -32,7 +32,7 @@ import org.springframework.context.annotation.Configuration;
/**
* Consul自定义注册规则
*
* @author smallchill
* @author Chill
*/
@Configuration
@ConditionalOnConsulEnabled

View File

@ -29,7 +29,7 @@ import org.springframework.core.annotation.Order;
/**
* 配置类
*
* @author smallchill
* @author Chill
*/
@Configuration
@AllArgsConstructor

View File

@ -18,7 +18,7 @@ package org.springblade.core.launch.constant;
/**
* 系统常量
*
* @author smallchill
* @author Chill
*/
public interface AppConstant {

View File

@ -26,7 +26,7 @@ import org.springframework.cloud.consul.serviceregistry.ConsulServiceRegistry;
/**
* Consul自定义注册规则
*
* @author smallchill
* @author Chill
*/
public class BladeConsulServiceRegistry extends ConsulServiceRegistry {

View File

@ -26,7 +26,7 @@ import java.util.Map;
/**
* 配置文件
*
* @author smallchill
* @author Chill
*/
@ConfigurationProperties("blade")
public class BladeProperties {

View File

@ -21,7 +21,7 @@ import org.springframework.cloud.commons.util.InetUtils;
/**
* 服务器信息
*
* @author smallchill
* @author Chill
*/
public class ServerInfo {

View File

@ -20,7 +20,7 @@ import org.springframework.boot.builder.SpringApplicationBuilder;
/**
* launcher 扩展 用于一些组件发现
*
* @author smallchill
* @author Chill
*/
public interface LauncherService {

View File

@ -21,7 +21,7 @@ import java.lang.annotation.*;
/**
* 操作日志注解
*
* @author smallchill
* @author Chill
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)

View File

@ -26,7 +26,7 @@ import org.springblade.core.log.publisher.ApiLogPublisher;
/**
* 操作日志使用spring event异步入库
*
* @author smallchill
* @author Chill
*/
@Slf4j
@Aspect

View File

@ -39,7 +39,7 @@ import javax.servlet.Servlet;
/**
* 统一异常处理
*
* @author smallchill
* @author Chill
*/
@Configuration
@AllArgsConstructor

View File

@ -32,7 +32,7 @@ import org.springframework.context.annotation.Configuration;
/**
* 日志工具自动配置
*
* @author smallchill
* @author Chill
*/
@Configuration
@AllArgsConstructor

View File

@ -18,7 +18,7 @@ package org.springblade.core.log.constant;
/**
* 事件常量
*
* @author smallchill
* @author Chill
*/
public interface EventConstant {

View File

@ -30,7 +30,7 @@ import java.util.Map;
/**
* 全局异常处理
*
* @author smallchill
* @author Chill
*/
@Slf4j
public class BladeErrorAttributes extends DefaultErrorAttributes {

View File

@ -31,7 +31,7 @@ import java.util.Map;
/**
* 更改html请求异常为ajax
*
* @author smallchill
* @author Chill
*/
public class BladeErrorController extends BasicErrorController {

View File

@ -52,7 +52,7 @@ import java.util.Set;
/**
* 全局异常处理处理可预见的异常
*
* @author smallchill
* @author Chill
*/
@Slf4j
@Configuration

View File

@ -23,7 +23,7 @@ import java.util.Map;
/**
* 系统日志事件
*
* @author smallchill
* @author Chill
*/
public class ApiLogEvent extends ApplicationEvent {

View File

@ -39,7 +39,7 @@ import java.util.Map;
/**
* 异步监听日志事件
*
* @author smallchill
* @author Chill
*/
@Slf4j
@Component

View File

@ -23,7 +23,7 @@ import java.util.Map;
/**
* 错误日志事件
*
* @author smallchill
* @author Chill
*/
public class ErrorLogEvent extends ApplicationEvent {

View File

@ -37,7 +37,7 @@ import java.util.Map;
/**
* 异步监听错误日志事件
*
* @author smallchill
* @author Chill
*/
@Slf4j
@Component

View File

@ -23,7 +23,7 @@ import java.util.Map;
/**
* 系统日志事件
*
* @author smallchill
* @author Chill
*/
public class UsualLogEvent extends ApplicationEvent {

View File

@ -38,7 +38,7 @@ import java.util.Map;
/**
* 异步监听日志事件
*
* @author smallchill
* @author Chill
*/
@Slf4j
@Component

View File

@ -23,7 +23,7 @@ import org.springblade.core.tool.api.ResultCode;
/**
* 业务异常
*
* @author smallchill
* @author Chill
*/
public class ServiceException extends RuntimeException {
private static final long serialVersionUID = 2359767895161832954L;

View File

@ -27,7 +27,7 @@ import org.springframework.web.bind.annotation.RequestBody;
/**
* Feign接口类
*
* @author smallchill
* @author Chill
*/
@FeignClient(
value = AppConstant.APPLICATION_LOG_NAME

View File

@ -23,7 +23,7 @@ import org.springframework.beans.factory.annotation.Value;
/**
* 日志工具类
*
* @author smallchill
* @author Chill
*/
@Slf4j
public class BladeLogger implements InitializingBean {

View File

@ -30,7 +30,7 @@ import java.time.LocalDateTime;
/**
* 实体类
*
* @author smallchill
* @author Chill
*/
@Data
@TableName("blade_log_api")

View File

@ -21,7 +21,7 @@ import lombok.EqualsAndHashCode;
/**
* LogApi视图实体类
*
* @author smallchill
* @author Chill
*/
@Data
@EqualsAndHashCode(callSuper = true)

View File

@ -31,7 +31,7 @@ import java.time.LocalDateTime;
/**
* 服务 异常
*
* @author smallchill
* @author Chill
*/
@Data
@TableName("blade_log_error")

View File

@ -21,7 +21,7 @@ import lombok.EqualsAndHashCode;
/**
* LogError视图实体类
*
* @author smallchill
* @author Chill
*/
@Data
@EqualsAndHashCode(callSuper = true)

View File

@ -30,7 +30,7 @@ import java.time.LocalDateTime;
/**
* 实体类
*
* @author smallchill
* @author Chill
* @since 2018-10-12
*/
@Data

View File

@ -21,7 +21,7 @@ import lombok.EqualsAndHashCode;
/**
* LogUsual视图实体类
*
* @author smallchill
* @author Chill
*/
@Data
@EqualsAndHashCode(callSuper = true)

View File

@ -31,7 +31,7 @@ import java.util.Map;
/**
* API日志信息事件发送
*
* @author smallchill
* @author Chill
*/
public class ApiLogPublisher {

View File

@ -29,7 +29,7 @@ import java.util.Map;
/**
* BLADE日志信息事件发送
*
* @author smallchill
* @author Chill
*/
public class BladeLogPublisher {

View File

@ -28,7 +28,7 @@ import java.util.Map;
/**
* 异常信息事件发送
*
* @author smallchill
* @author Chill
*/
public class ErrorLogPublisher {

View File

@ -22,7 +22,7 @@ import org.apache.ibatis.reflection.MetaObject;
/**
* mybatisplus自定义填充
*
* @author smallchill
* @author Chill
*/
@Slf4j
public class BladeMetaObjectHandler implements MetaObjectHandler {

View File

@ -30,7 +30,7 @@ import java.time.LocalDateTime;
/**
* 基础实体类
*
* @author smallchill
* @author Chill
*/
@Data
public class BaseEntity implements Serializable {

View File

@ -24,7 +24,7 @@ import java.util.List;
* 基础业务接口
*
* @param <T>
* @author smallchill
* @author Chill
*/
public interface BaseService<T> extends IService<T> {

View File

@ -35,7 +35,7 @@ import java.util.List;
*
* @param <M> mapper
* @param <T> model
* @author smallchill
* @author Chill
*/
@Validated
public class BaseServiceImpl<M extends BaseMapper<T>, T extends BaseEntity> extends ServiceImpl<M, T> implements BaseService<T> {

View File

@ -24,7 +24,7 @@ import java.util.stream.Collectors;
/**
* 视图包装基类
*
* @author smallchill
* @author Chill
*/
public abstract class BaseEntityWrapper<E, V> {

View File

@ -28,7 +28,7 @@ import java.util.Map;
/**
* 分页工具
*
* @author smallchill
* @author Chill
*/
public class Condition {

View File

@ -23,7 +23,7 @@ import lombok.experimental.Accessors;
/**
* 分页工具
*
* @author smallchill
* @author Chill
*/
@Data
@Accessors(chain = true)

View File

@ -22,7 +22,7 @@ import lombok.Data;
/**
* AuthInfo
*
* @author smallchill
* @author Chill
*/
@Data
@ApiModel(description = "认证信息")

View File

@ -23,7 +23,7 @@ import java.io.Serializable;
/**
* 用户实体
*
* @author smallchill
* @author Chill
*/
@Data
public class BladeUser implements Serializable {

View File

@ -20,7 +20,7 @@ import java.lang.annotation.*;
/**
* 权限注解 用于检查权限 规定访问权限
*
* @author smallchill
* @author Chill
*/
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)

View File

@ -40,7 +40,7 @@ import java.lang.reflect.Method;
/**
* AOP 鉴权
*
* @author smallchill
* @author Chill
*/
@Aspect
public class AuthAspect implements ApplicationContextAware {

View File

@ -24,7 +24,7 @@ import org.springblade.core.tool.utils.StringUtil;
/**
* 权限判断
*
* @author smallchill
* @author Chill
*/
public class AuthFun {

View File

@ -25,7 +25,7 @@ import org.springframework.context.annotation.Configuration;
/**
* secure模块api放行默认配置
*
* @author smallchill
* @author Chill
*/
@Configuration
@AutoConfigureBefore(SecureConfiguration.class)

View File

@ -29,7 +29,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/**
* 配置类
*
* @author smallchill
* @author Chill
*/
@Order
@Configuration

View File

@ -22,7 +22,7 @@ import org.springblade.core.tool.api.ResultCode;
/**
* Secure异常
*
* @author smallchill
* @author Chill
*/
public class SecureException extends RuntimeException {
private static final long serialVersionUID = 2359767895161832954L;

View File

@ -33,7 +33,7 @@ import java.util.Objects;
/**
* jwt拦截器校验
*
* @author smallchill
* @author Chill
*/
@Slf4j
public class SecureInterceptor extends HandlerInterceptorAdapter {

View File

@ -24,7 +24,7 @@ import java.util.List;
/**
* secure api放行配置
*
* @author smallchill
* @author Chill
*/
@Data
public class SecureRegistry {

View File

@ -35,7 +35,7 @@ import java.util.Map;
/**
* Secure工具类
*
* @author smallchill
* @author Chill
*/
public class SecureUtil {
public static final String BLADE_USER_REQUEST_ATTR = "_BLADE_USER_REQUEST_ATTR_";

View File

@ -40,7 +40,7 @@ import java.util.List;
/**
* swagger配置
*
* @author smallchill
* @author Chill
*/
@Configuration
@EnableSwagger2

View File

@ -26,7 +26,7 @@ import java.util.List;
/**
* SwaggerProperties
*
* @author smallchill
* @author Chill
*/
@Data
@RefreshScope

View File

@ -20,7 +20,7 @@ import java.io.Serializable;
/**
* 业务代码接口
*
* @author smallchill
* @author Chill
*/
public interface IResultCode extends Serializable {

View File

@ -29,7 +29,7 @@ import java.util.Optional;
/**
* 统一API响应结果封装
*
* @author smallchill
* @author Chill
*/
@Getter
@Setter

View File

@ -23,7 +23,7 @@ import javax.servlet.http.HttpServletResponse;
/**
* 业务代码枚举
*
* @author smallchill
* @author Chill
*/
@Getter
@AllArgsConstructor

View File

@ -37,7 +37,7 @@ import java.util.TimeZone;
/**
* Jackson配置类
*
* @author smallchill
* @author Chill
*/
@Configuration
@ConditionalOnClass(ObjectMapper.class)

View File

@ -36,7 +36,7 @@ import java.util.List;
/**
* 消息配置类
*
* @author smallchill
* @author Chill
*/
@Configuration
@AllArgsConstructor

View File

@ -26,7 +26,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/**
* 工具配置类
*
* @author smallchill
* @author Chill
*/
@Configuration
@Order(Ordered.HIGHEST_PRECEDENCE)

View File

@ -18,7 +18,7 @@ package org.springblade.core.tool.constant;
/**
* 系统常量
*
* @author smallchill
* @author Chill
*/
public interface BladeConstant {

View File

@ -18,7 +18,7 @@ package org.springblade.core.tool.constant;
/**
* 系统默认角色
*
* @author smallchill
* @author Chill
*/
public class RoleConstant {

View File

@ -21,7 +21,7 @@ import lombok.Data;
/**
* Blade系统配置类
*
* @author smallchill
* @author Chill
*/
@Data
public class SystemConstant {

View File

@ -37,7 +37,7 @@ import java.util.*;
/**
* Jackson工具类
*
* @author smallchill
* @author Chill
*/
@Slf4j
public class JsonUtil {

View File

@ -24,7 +24,7 @@ import java.util.List;
/**
* 节点基类
*
* @author smallchill
* @author Chill
*/
@Data
public class BaseNode implements INode {

View File

@ -22,7 +22,7 @@ import lombok.EqualsAndHashCode;
/**
* 森林节点类
*
* @author smallchill
* @author Chill
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -21,7 +21,7 @@ import java.util.List;
/**
* 森林管理类
*
* @author smallchill
* @author Chill
*/
public class ForestNodeManager<T extends INode> {

View File

@ -20,7 +20,7 @@ import java.util.List;
/**
* 森林节点归并类
*
* @author smallchill
* @author Chill
*/
public class ForestNodeMerger {

View File

@ -20,7 +20,7 @@ import java.util.List;
/**
* Created by Blade.
*
* @author smallchill
* @author Chill
*/
public interface INode {

View File

@ -8,7 +8,7 @@ import java.util.List;
/**
* Created by Blade.
*
* @author smallchill
* @author Chill
*/
public class NodeTest {

View File

@ -21,7 +21,7 @@ import lombok.EqualsAndHashCode;
/**
* 树型节点类
*
* @author smallchill
* @author Chill
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -6,7 +6,7 @@ import lombok.Getter;
/**
* Bean属性
*
* @author smallchill
* @author Chill
*/
@Getter
@AllArgsConstructor

View File

@ -20,7 +20,7 @@ import java.io.OutputStream;
/**
* A factory for creating MultiOutputStream objects.
*
* @author smallchill
* @author Chill
*/
public interface IMultiOutputStream {

View File

@ -18,7 +18,7 @@ package org.springblade.core.tool.support;
/**
* 图片操作类
*
* @author smallchill
* @author Chill
*/
public class ImagePosition {

View File

@ -26,7 +26,7 @@ import java.util.HashMap;
/**
* 链式map
*
* @author smallchill
* @author Chill
*/
public class Kv extends LinkedCaseInsensitiveMap<Object> {

View File

@ -6,7 +6,7 @@ import org.springblade.core.tool.utils.StringPool;
/**
* 字符串格式化
*
* @author smallchill
* @author Chill
*/
public class StrFormatter {

View File

@ -9,7 +9,7 @@ import java.util.function.Function;
* Lambda 遇上受检异常
* https://segmentfault.com/a/1190000007832130
*
* @author smallchill
* @author Chill
*/
public class Try {

View File

@ -22,7 +22,7 @@ import java.io.IOException;
/**
* XSS过滤
*
* @author smallchill
* @author Chill
*/
public class XssFilter implements Filter {

View File

@ -35,7 +35,7 @@ import java.util.Map;
/**
* XSS过滤处理
*
* @author smallchill
* @author Chill
*/
public class XssHttpServletRequestWrapper extends HttpServletRequestWrapper {

View File

@ -31,7 +31,7 @@ import java.net.URL;
/**
* 图片工具类
*
* @author smallchill
* @author Chill
*/
public final class ImageUtil {

View File

@ -23,7 +23,7 @@ import java.util.Map;
/**
* Http请求工具类
*
* @author smallchill
* @author Chill
*/
@Slf4j
public class OkHttpUtil {

View File

@ -24,7 +24,7 @@ import org.springframework.context.ApplicationEvent;
/**
* spring 工具类
*
* @author smallchill
* @author Chill
*/
@Slf4j
public class SpringUtil implements ApplicationContextAware {