摘要: AopUtils.getTargetClass(bean).getMethods() 这段代码用于获取一个对象(bean)的所有公共方法(public methods)。让我来解释一下这段代码: AopUtils.getTargetClass(bean): 这个方法用于获取指定对象的目标类,即被代理 阅读全文
posted @ 2024-04-24 15:55 人在代码在 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1.@SpringbootApplication 2.@EnableAutoConfiguration. 2.@Import({AutoConfigurationImportSelector.class}) 通过@import自动配置 springboot里面有各种jar包的配置信息的实例化bean 阅读全文
posted @ 2024-04-21 13:19 人在代码在 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 方式1: @Configurationpublic class FeignConfig implements RequestInterceptor { @Override public void apply(RequestTemplate requestTemplate) { ServletRequ 阅读全文
posted @ 2024-04-18 13:37 人在代码在 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 定义xml: org.activiti.db.mapping.entity.insertHistoricTaskInstance 调用:org.activiti.engine.impl.db; 类:DbSqlSession 方法:protected void flushRegularInsert(E 阅读全文
posted @ 2024-04-10 14:35 人在代码在 阅读(3) 评论(0) 推荐(0) 编辑
摘要: mysql -u root -p -h 117.78.51.74 -P 8806 阅读全文
posted @ 2024-03-29 10:53 人在代码在 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 域名》dns解析》ip>nginx>端口》 server { listen 8119; location /api { proxy_pass http://49.4.24.61:8200;《《《gateway>>nacos>服务 阅读全文
posted @ 2024-03-28 16:33 人在代码在 阅读(2) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { Integer integer1 = new Integer(100); Integer integer2 = new Integer(100); System.out.println(integer1==intege 阅读全文
posted @ 2024-03-26 15:12 人在代码在 阅读(2) 评论(0) 推荐(0) 编辑
摘要: java内置线程池:ThreadPoolExecutor java内置线程池的封装线程池:ExecutorService executor = Executors.newCachedThreadPool();ExecutorService executor2 = Executors.newFixed 阅读全文
posted @ 2024-01-19 16:44 人在代码在 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1.监听器基于观察者模式。 1.myTestEvent自定义事件。被观察者public class MyTestEvent extends ApplicationEvent2.MyNoAnnotationListener 自定义监听器。观察者 @Componentpublic class MyNoA 阅读全文
posted @ 2023-12-22 15:04 人在代码在 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1.WebMvcConfigurer mvc拦截器》拦截链接 2.AsyncHandlerInterceptor》preHandle方法 预处理》给mybatis拦截器做数据预备代码信息:public interface AsyncHandlerInterceptor extends Handler 阅读全文
posted @ 2023-12-21 17:06 人在代码在 阅读(1) 评论(0) 推荐(0) 编辑