This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.tydic.utils.common.aspect; | |
import com.tydic.utils.common.annotation.MultiTransactional; | |
import org.apache.commons.lang3.ArrayUtils; | |
import org.aspectj.lang.ProceedingJoinPoint; | |
import org.aspectj.lang.annotation.Around; | |
import org.aspectj.lang.annotation.Aspect; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.beans.factory.annotation.Autowired; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.tydic.utils.common.annotation; | |
import java.lang.annotation.*; | |
@Target(ElementType.METHOD) | |
@Retention(RetentionPolicy.RUNTIME) | |
@Documented | |
public @interface MultiTransactional { | |
String[] value() default ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example; | |
import java.lang.reflect.Array; | |
import java.util.Collection; | |
import java.util.Date; | |
import java.util.Map; | |
/** | |
* @author chengyq | |
* @date 2021年4月9日 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 函数防抖包装函数 | |
* @author | |
* @export | |
* @class Debounced | |
*/ | |
export class Debounced { | |
/** | |
* @param func 需要包装的函数 | |
* @param delay 延迟时间,单位ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable @typescript-eslint/no-non-null-assertion */ | |
import { Injectable } from '@angular/core'; | |
import { Observable, BehaviorSubject } from 'rxjs'; | |
import { DragData } from '../../entity/interface'; | |
@Injectable({ | |
providedIn: 'root', | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Slf4j | |
public class BeanUtils { | |
//region MapToBeanBySet | |
/** | |
* map里的参数反射到Bean | |
* @param map | |
* @param clazz | |
* @param <T> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.tydic.service.util; | |
import org.springframework.beans.BeansException; | |
import org.springframework.beans.factory.*; | |
import org.springframework.context.ApplicationContext; | |
import org.springframework.context.ApplicationContextAware; | |
import org.springframework.core.ResolvableType; | |
import org.springframework.lang.NonNull; | |
import org.springframework.lang.Nullable; | |
import org.springframework.stereotype.Component; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.tydic.service.util; | |
import org.springframework.core.env.Environment; | |
import java.net.Inet4Address; | |
import java.net.InetAddress; | |
import java.net.NetworkInterface; | |
import java.net.SocketException; | |
import java.util.Enumeration; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 判断操作系统 | |
* | |
* @author chengyiqun | |
* @version V1.0 | |
* @date 2021/7/15 11:07 | |
*/ | |
public class JudgeSystemUtils { | |
public static boolean isLinux() { | |
return System.getProperty("os.name").toLowerCase().contains("linux"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.exapmle | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
/** | |
* 强转泛型集合防止警告 | |
* | |
* @author chengyiqun | |
* @version V1.0 | |
* @date 2021/7/22 17:10 |
OlderNewer