• 2024-06-06springboot 接口返回数据统一加密
      @Aspect@Component@Slf4jpublicclassAESTimeAspect{@Around("execution(*com.trt.sea.xxserx.controller*..*Controller.*(..))")publicObjecthandleAroundControllerMethod(ProceedingJoinPointpjp)throwsThrowable{longst
  • 2024-05-28费用项目已添加了具有相同键的项
     2024-05-1411:27:04,256[56]ERROR-BOS-Code:,FormId:,LoadData:Kingdee.BOS.KDException:费用项目Anitemwiththesamekeyhasalreadybeenadded.atKingdee.BOS.Core.Metadata.QueryElement.QueryInfo.AddEntity(Formform,Entityentity)atKingdee.BOS
  • 2024-04-29WPF pass event method to viewmodel via Interaction:CallMethodAction,TargetObject MethodName
    <Windowx:Class="WpfApp71.MainWindow"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:d="http://schemas.microsoft.
  • 2024-03-16Spring Schedule定时任务进阶篇(调度器)
    SpringSchedule背后支持多种任务调度方案,如JDKTimer、concurrent包下的ScheduledExecutorService以及Quartz等。Spring通过封装这些底层实现,为开发者提供了统一的接口和配置方式来处理定时任务。接下来通过SpringBoot+数据库来实现根据数据库数据来动态管理我们的定时任务,我这
  • 2024-01-16springBoot通过AOP(面向切面编程)实现自动保存请求日志
    1.定义注解importjava.lang.annotation.ElementType;importjava.lang.annotation.Retention;importjava.lang.annotation.RetentionPolicy;importjava.lang.annotation.Target;@Target(ElementType.METHOD)//指定该注解只能应用于方法上@Retention(RetentionPolicy.
  • 2023-11-24C# 中增加一个使用StopWatch记录方法执行时间的通用方法
    目录一背景二源码2.1注意事项三使用方法一背景在很多时候我们在进行代码排查的时候需要在日志中记录代码的执行时间从而方便我们进行代码运行效率的执行,我们在日志中准确记录方法的执行时间,这样方便我们进行代码的排查,下面分享一个我们常用的记录方式,方便使用,而且最重要的
  • 2023-09-17如何在Vue组件中定义方法
    在Vue组件中定义方法,你可以按照以下步骤进行:在Vue组件的methods选项中定义方法。methods:{methodName(){//方法的具体逻辑},anotherMethod(){//另一个方法的逻辑}}在上述示例中,使用methods选项来定义了两个方法:methodName和anotherMethod。
  • 2023-08-16用 TaskCompletionSource 来做多线程间的数据同步
    publicabstractclassHunClientBase{protectedComunicationConfig_ComunicationConfig;protectedHubConnection_HubConnection;privateTaskCompletionSource<string>requestCompletionSource;protectedHunClientBas
  • 2023-03-11[Typescript] Builder pattern - 05 Exercise
    classOverriden<TMapextendsobject={}>{privatemap:TMap;constructor(obj:TMap){this.map=obj;}build(){returnthis.map}me
  • 2023-03-09自定义日志服务
     ///<summary>///日志服务///</summary>publicinterfaceILog{voidWrite(LogTypelogType,stringmessage=""
  • 2023-01-18学习笔记——Spring中的AOP(AspectJ);Spring中AOP概述;Spring中AOP相关术语;AspectJ中切入点表达式;AspectJ中JoinPoint对象;AspectJ中通知
    2023-01-18一、Spring中的AOP1、AspectJ(1)简介Java社区里最完整最流行的AOP框架在Spring2.0以上版本中,可以使用AspectJ注解或基于XML配置的AOP(2)使用AspectJ步骤①在s
  • 2023-01-18Springboot:aop注解实现
    概念Aop原指面向切面编程。但在spring中对aop的实现指的是:对方法执行前后加入其它逻辑代码,达到增强方法的目的spring-aop的底层实现一般实现aop,有两种方案:JDK动态
  • 2023-01-16springboot反射 + 自定义注解
    利用反射调用方法获取bean寻找bean中指定的方法method(方法名可能匹配,参数类型不匹配,故还要分析参数类型)利用method.invoke方法Spring已经为此实现了完整的机制,
  • 2022-11-13.Net core 调用WebService
    在REST出现之前解决跨平台之间的通信问题基本都是采用基于XML的WebService进行。一、什么是WebServiceWebService是一个平台独立的,低耦合的,自包含的、基于可编程的web的
  • 2022-10-30使用Expression代替反射读取IDataReader或IDataRecord给实体类赋值
    ExpressionMapper代码usingSystem;usingSystem.Collections.Concurrent;usingSystem.Collections.Generic;usingSystem.Data;usingSystem.Data.Common;usingSystem.Li
  • 2022-10-25使用Expression代替反射读取IDataReader或IDataRecord给实体类赋值
    ExpressionMapper代码usingSystem;usingSystem.Collections.Concurrent;usingSystem.Collections.Generic;usingSystem.Data;usingSystem.Data.Common;usingSy
  • 2022-10-15JMETHOD
    #include<iostream>#defineJMETHOD(type,methodname,arglist)type(*methodname)arglistJMETHOD(int,test_func,(inta,intb));intadd(inta,intb){
  • 2022-10-07方法引用
    一、应用场景:在使用Lambda表达式时,也会出现代码的冗余情况二、语法格式: 符号表示 ::符号说明:双冒号为方法引用运算符三、使用形式1. instanc
  • 2022-09-28反射快速入门
    创建Cat模型packagecom.reflection.domain;publicclassCat{privateStringname="小喵";publicvoidhi(){System.out.println("hi"+nam
  • 2022-09-27spring boot实现动态增删启停定时任务
    在springboot项目中,可以通过@EnableScheduling注解和@Scheduled注解实现定时任务,也可以通过SchedulingConfigurer接口来实现定时任务。但是这两种方式不能动态添加、删除
  • 2022-09-25注解-自定义注解-元注解和解析注解
    注解-自定义注解-元注解元注解:就是用于描述注解的注解@Target:描述注解能够作用的位置@Retention:苗猪注解被保留的阶段@Documented:描述注解是
  • 2022-08-25frida打印类下方法模板
    Java.use('类名').class.getDeclaredMethods().forEach(function(method){varmethodName=method.toString();console.log("methodname="+methodName);
  • 2022-08-24atools -> resp -> DomainException
    DomainException类文件packagecom.example.demo.atools.resp;/***@Create:IntelliJIDEA.*@Author:subtlman_ljx*@Date:2020/09/09/9:22*@Descriptio
  • 2022-08-15lambda方法引用获取字段属性
    1、IGetterimportjava.io.Serializable;@FunctionalInterfacepublicinterfaceIGetter<T>extendsSerializable{Objectget(Tsource);} 2、ISetteri