This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| import org.apache.ibatis.builder.StaticSqlSource; | |
| import org.apache.ibatis.exceptions.TooManyResultsException; | |
| import org.apache.ibatis.mapping.MappedStatement; | |
| import org.apache.ibatis.mapping.ResultMap; | |
| import org.apache.ibatis.mapping.SqlCommandType; | |
| import org.apache.ibatis.mapping.SqlSource; | |
| import org.apache.ibatis.scripting.LanguageDriver; | |
| import org.apache.ibatis.session.Configuration; | |
| import org.apache.ibatis.session.SqlSession; |
This file contains hidden or 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 hidden or 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; |
NewerOlder