优化注释

v1.4.1
hiparker 4 years ago
parent 4e2965ceda
commit 07cb28b484

@ -16,36 +16,37 @@
package org.opsli.plugins.cache;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.plugins.cache
* @Author: Parker
* @CreateTime: 2020-09-16 19:19
* @Description: EhCache
* EhCache
*
* @author Parker
* @date 2020-09-16 11:47
*/
public interface EhCachePlugin {
/**
*
* @param cacheName
* @param key
* @param value
* @return
* @param cacheName
* @param key Key
* @param value
* @return boolean
*/
boolean put(String cacheName, String key, Object value);
/**
*
* @param cacheName
* @param key
* @return
* @param cacheName
* @param key Key
* @param vClass Class
* @return V
*/
<V> V get(String cacheName, String key ,Class<V> vClass);
<V> V get(String cacheName, String key, Class<V> vClass);
/**
*
* @param cacheName
* @param key
* @param cacheName
* @param key Key
* @return boolean
*/
boolean delete(String cacheName, String key);

@ -20,11 +20,10 @@ import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Configuration;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.plugins.cache.conf
* @Author: Parker
* @CreateTime: 2020-09-16 21:35
* @Description: EhCache
* EhCache
*
* @author Parker
* @date 2020-09-16 11:47
*/
@Configuration
@EnableCaching

@ -18,11 +18,10 @@ package org.opsli.plugins.cache.msg;
import org.opsli.common.base.msg.BaseMsg;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.plugins.mail.msg
* @Author: Parker
* @CreateTime: 2020-09-13 19:54
* @Description:
* Ehcache
*
* @author Parker
* @date 2020-09-16 11:47
*/
public enum EhCacheMsg implements BaseMsg {

@ -27,11 +27,10 @@ import org.springframework.stereotype.Service;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.plugins.cache.service
* @Author: Parker
* @CreateTime: 2020-09-16 21:08
* @Description: EhCachePlugin
* EhCachePlugin
*
* @author Parker
* @date 2020-09-16 11:47
*/
@Slf4j
@Service

@ -44,7 +44,9 @@ import java.util.List;
* easyExcelpoi3.17
* BeanCopy ExcelException
* java
* @author parker
*
* @author Parker
* @date 2020-09-16 11:47
*/
@Slf4j
public class ExcelPlugin {
@ -249,7 +251,7 @@ public class ExcelPlugin {
* @param excelListener new ExcelListener()
*/
private ExcelReader getReader(MultipartFile excel,
ExcelListener excelListener) throws ExcelPluginException{
ExcelListener<?> excelListener) throws ExcelPluginException{
String fileName = excel.getOriginalFilename();
if (fileName == null ) {
// 文件格式错误

@ -19,9 +19,10 @@ import org.apache.poi.ss.usermodel.IndexedColors;
import java.lang.annotation.*;
/**
* Created Date by 2020/5/9 0009.
*
*
* @author Parker
* @date 2020-09-16 11:47
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)

@ -21,11 +21,10 @@ import org.apache.poi.ss.usermodel.IndexedColors;
import java.lang.annotation.*;
/**
* Created Date by 2020/5/9 0009.
*
* Excel
*
* @author parker
* @author Parker
* @date 2020-09-16 11:47
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)

@ -18,13 +18,10 @@ package org.opsli.plugins.excel.annotation;
import java.lang.annotation.*;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.common.annotation
* @Author: Parker
* @CreateTime: 2020-09-16 16:36
* @Description:
* Excel
*
* @author Parker
* @date 2020-09-16 11:47
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@ -33,10 +30,7 @@ public @interface ExcelInfo {
/** 字典类型 code */
String dictType() default "";
/** 字段反射类型 */
//Class<?> reflectFieldType() default Class.class;
/** 字段反射名称 */
//String reflectFieldName() default "";
/** 字段样式 */
CellStyleFormat cellStyleFormat() default @CellStyleFormat();

@ -19,10 +19,10 @@ import org.opsli.common.base.msg.BaseMsg;
import org.opsli.common.exception.ServiceException;
/**
* Created Date by 2020/5/9 0009.
*
* Excel
*
* @author Parker
* @date 2020-09-16 11:47
*/
public class ExcelPluginException extends ServiceException {

@ -25,12 +25,13 @@ import java.io.OutputStream;
import java.util.List;
/**
* ExcelWriterFactory
* Excel
*
* @author parker
* @author Parker
* @date 2020-09-16 11:47
*/
public class ExcelWriterFactory extends ExcelWriter {
private OutputStream outputStream;
private final OutputStream outputStream;
private int sheetNo = 1;
public ExcelWriterFactory(OutputStream outputStream, ExcelTypeEnum typeEnum) {

@ -27,7 +27,9 @@ import java.util.List;
/**
* Excel
* @author parker
*
* @author Parker
* @date 2020-09-16 11:47
*/
@Slf4j
public abstract class BatchExcelListener<T> extends AnalysisEventListener<T> {

@ -28,7 +28,9 @@ import java.util.List;
/**
* Excel
* @author parker
*
* @author Parker
* @date 2020-09-16 11:47
*/
@Slf4j
public class ExcelListener<T> extends AnalysisEventListener<T> {

@ -18,11 +18,10 @@ package org.opsli.plugins.excel.msg;
import org.opsli.common.base.msg.BaseMsg;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.plugins.mail.msg
* @Author: Parker
* @CreateTime: 2020-09-13 19:54
* @Description: Excel
* Excel
*
* @author Parker
* @date 2020-09-16 11:47
*/
public enum ExcelMsg implements BaseMsg {

@ -18,18 +18,17 @@ package org.opsli.plugins.redis;
import org.opsli.plugins.redis.lock.RedisLock;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.plugins.redis
* @Author: Parker
* @CreateTime: 2020-09-16 11:47
* @Description: Redis
* Redis
*
* @author Parker
* @date 2020-09-16 11:47
*/
public interface RedisLockPlugins {
/**
*
* @param redisLock redis
* @return
* @return RedisLock
*/
RedisLock tryLock(RedisLock redisLock);
@ -37,7 +36,7 @@ public interface RedisLockPlugins {
/**
*
* @param redisLock redis
* @return
* @return boolean
*/
boolean unLock(RedisLock redisLock);
}

@ -35,10 +35,10 @@ import java.nio.charset.StandardCharsets;
import java.util.List;
/**
* @Author parker
*
* Redis
*
* @author Parker
* @date 2020-09-16 11:47
*/
@Slf4j
@Configuration

@ -19,11 +19,10 @@ import org.opsli.common.base.msg.BaseMsg;
import org.opsli.common.exception.ServiceException;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.plugins.mail.exception
* @Author: Parker
* @CreateTime: 2020-09-14 18:44
* @Description: Redis
* Redis
*
* @author Parker
* @date 2020-09-16 11:47
*/
public class RedisPluginException extends ServiceException {

@ -19,11 +19,10 @@ package org.opsli.plugins.redis.lock;
import java.util.concurrent.atomic.AtomicInteger;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.plugins.redis.lock
* @Author: Parker
* @CreateTime: 2020-09-16 00:51
* @Description: Redis
* Redis
*
* @author Parker
* @date 2020-09-16 11:47
*/
public class RedisLock {

@ -28,11 +28,7 @@ import java.util.Collections;
import java.util.List;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.plugins.redis.lock
* @Author: Parker
* @CreateTime: 2020-09-16 11:49
* @Description: Redis
* Redis
*
* ===================== Redis =====================
*
@ -47,6 +43,8 @@ import java.util.List;
* 2
* 3线使keytairput
*
* @author Parker
* @date 2020-09-16 11:47
*/
@Slf4j
@Service

@ -18,11 +18,10 @@ package org.opsli.plugins.redis.msg;
import org.opsli.common.base.msg.BaseMsg;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.plugins.mail.msg
* @Author: Parker
* @CreateTime: 2020-09-13 19:54
* @Description: Redis
* Redis
*
* @author Parker
* @date 2020-09-16 11:47
*/
public enum RedisMsg implements BaseMsg {

@ -21,13 +21,12 @@ import lombok.experimental.Accessors;
import org.opsli.common.enums.SystemInfo;
/**
* @author parker
* @date 2020-09-13
*
* 广
*
* 广
*
* @author Parker
* @date 2020-09-16 11:47
*/
@Data
@Accessors(chain = true)

@ -18,11 +18,10 @@ package org.opsli.plugins.redis.pushsub.entity;
import java.io.Serializable;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.plugins.redis.entity
* @Author: Parker
* @CreateTime: 2020-09-15 14:50
* @Description: Redis
* Redis
*
* @author Parker
* @date 2020-09-16 11:47
*/
public interface RedisPushSubMessage extends Serializable {

@ -22,7 +22,9 @@ import java.util.concurrent.ConcurrentMap;
/**
*
* @author parker
*
* @author Parker
* @date 2020-09-16 11:47
*/
public class RedisScriptCache {

@ -17,11 +17,10 @@ package org.opsli.plugins.redis.scripts.enums;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.plugins.redis.enums
* @Author: Parker
* @CreateTime: 2020-09-14 21:56
* @Description: Redis
* Redis
*
* @author Parker
* @date 2020-09-16 11:47
*/
public enum RedisScriptsEnum {

@ -18,11 +18,10 @@ package org.opsli.plugins.waf.msg;
import org.opsli.common.base.msg.BaseMsg;
/**
* @BelongsProject: opsli-boot
* @BelongsPackage: org.opsli.plugins.mail.msg
* @Author: Parker
* @CreateTime: 2020-09-13 19:54
* @Description: Excel
*
*
* @author Parker
* @date 2020-09-16
*/
public enum WafMsg implements BaseMsg {

@ -9,7 +9,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
import java.util.Set;
/**
*
*
*
* @author Parker
* @date 2020-12-19

Loading…
Cancel
Save