上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 25 下一页
摘要: /** * @auto dh * @create 2020-04-29-9:31 */interface Id010{ void run(); default void test(){ System.out.println("hello ,I am default method"); } stati 阅读全文
posted @ 2020-04-29 09:40 玄空2 阅读(248) 评论(0) 推荐(0) 编辑
摘要: /** * @auto dh * @create 2020-04-29-9:25 */abstract class Id009{ public Id009(){ } abstract void test();}public class Test009 { public static void mai 阅读全文
posted @ 2020-04-29 09:39 玄空2 阅读(174) 评论(0) 推荐(0) 编辑
摘要: @Conditional进行条件判断: 符合条件则加载该bean,不符合则不加载该bean 示例1、用于测试的bean实体 package com.bean;/** * @auto dh * @create 2020-04-25-15:10 */public class Animal {} pack 阅读全文
posted @ 2020-04-25 15:36 玄空2 阅读(2321) 评论(0) 推荐(0) 编辑
摘要: Ioc容器的核心思想: 资源不由使用资源的双方管理,而由不使用资源的第三方管理 优点: 利用资源集中管理,实现资源的可配置和易管理。 降低了使用资源双方的依赖程度,即耦合度 阅读全文
posted @ 2020-04-25 14:53 玄空2 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 配置Bean的作用域对象 在不指定@Scope的情况下,所有bean都是单例的,且是饿汉式加载(容器启动时就加载) @Lazy可以让其变为懒加载 在指定@Scope为prototype表示为多实例,且是懒汉式加载。 即IOC容器启动的时候,并不创建对象,而是第一次使用的时候才会创建。@Scope为p 阅读全文
posted @ 2020-04-25 14:33 玄空2 阅读(483) 评论(0) 推荐(0) 编辑
摘要: 1、配置类package com.configuration;import com.bean.Person;import com.tools.service.Service001;import org.springframework.context.annotation.Bean;import or 阅读全文
posted @ 2020-04-25 14:05 玄空2 阅读(422) 评论(0) 推荐(0) 编辑
摘要: 注意:如果写出的文件不存在,则会创建文件,并写入内容 如果写出的文件存在,默认情况下,不是文件的覆写,而是从头开始覆写 通过seek()方法来跳转覆盖位置import java.io.FileNotFoundException;import java.io.IOException;import ja 阅读全文
posted @ 2020-04-24 20:41 玄空2 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 数据流目的,操作基本变量和String类型进行持久化操作import java.io.*;/** * @auto dh * @create 2020-04-24-17:34 */public class File006 { public static void main(String[] args) 阅读全文
posted @ 2020-04-24 17:46 玄空2 阅读(369) 评论(0) 推荐(0) 编辑
摘要: import java.io.*;/** * @auto dh * @create 2020-04-24-16:24 */public class File005 { public static void main(String[] args) { BufferedOutputStream br = 阅读全文
posted @ 2020-04-24 16:37 玄空2 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 查看事务的隔离级别 show variables like '%isolation'; 更改事务的隔离级别 set session transaction isolation level 隔离级别参数 例如 set session transaction isolation level read u 阅读全文
posted @ 2020-04-23 08:21 玄空2 阅读(1510) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 25 下一页