上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页
摘要: 1、SqlMapperConfig.xml配置i文件 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis. 阅读全文
posted @ 2021-05-30 22:12 傲云萧雨 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 1、getway.yml配置 server: port: 9527 spring: application: name: cloud-gateway cloud: gateway: routes: - id: payment_routh #payment_route #路由的ID,没有固定规则但要求 阅读全文
posted @ 2021-05-30 10:53 傲云萧雨 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 1、什么是循环依赖 在单例模式下,A对象有B对象属性,B对象有A实例的属性,通过set方式初始化,如果通过构造器会直接报错。 2、哪三级缓存 singltonObjects :一级缓存 earlySingletonObjects:二级缓存 sigletonFactorys:三级缓存 3、过程图 阅读全文
posted @ 2021-05-29 17:23 傲云萧雨 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 官方图 1)获取bean的定义信息 2)根据配置情况调用 Bean 构造方法或工厂方法实例化 Bean。 3)利用依赖注入完成 Bean 中所有属性值的配置注入。 4)如果 Bean 实现了 BeanNameAware 接口,则 Spring 调用 Bean 的 setBeanName() 方法传入 阅读全文
posted @ 2021-05-28 07:00 傲云萧雨 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-05-26 09:22 傲云萧雨 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 1、建一个注解接口类MyNote package com.xiangwen.test.mynote; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.Retention 阅读全文
posted @ 2021-05-25 15:13 傲云萧雨 阅读(83) 评论(0) 推荐(0) 编辑
摘要: package com.xiangwen.day3; import java.util.concurrent.locks.ReentrantLock; public class ReentrantLockFaieTest { public static void main(String[] args 阅读全文
posted @ 2021-05-25 13:56 傲云萧雨 阅读(60) 评论(0) 推荐(0) 编辑
摘要: package com.xiangwen.day3; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorService; import java.util.concurrent.Execut 阅读全文
posted @ 2021-05-25 10:32 傲云萧雨 阅读(207) 评论(0) 推荐(0) 编辑
摘要: class TimerTest01{ public static void main(String[] args) { Timer timer = new Timer(); // Timer timer = new Timer(true);//守护线程 String firstTimeStr = " 阅读全文
posted @ 2021-05-21 16:54 傲云萧雨 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 1、pom.xml文件 <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </dependency> <dependency> <groupId>org.springframework. 阅读全文
posted @ 2021-05-19 08:53 傲云萧雨 阅读(68) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页