- 博客(6)
- 收藏
- 关注
原创 Springboot自动装配原理-详细版本
Springboot自动装配原理-详细版本一、认识下@SpringBootApplication注解1、展开@SpringBootApplication//标记使用位置 元注解@Target(ElementType.TYPE)//标记注解使用的阶段 元注解@Retention(RetentionPolicy.RUNTIME)//标记形成javadoc文档时注解显示 元注解@Documented//标记其子类能继承这个注解 修饰注解@Inherited//集成注解SpringBootCo
2022-04-01 10:57:36 850
原创 Springboot的@Import注解使用
@Import注解使用1、注解介绍@Target(ElementType.TYPE)@Retention(RetentionPolicy.RUNTIME)@Documentedpublic @interface Import { /** * {@link Configuration @Configuration}, {@link ImportSelector}, * {@link ImportBeanDefinitionRegistrar}, or regular c
2022-03-04 10:39:44 551
原创 23种设计模式之策略模式
** 设计模式——策略模式**1、什么是策略模式?在策略模式(Strategy Pattern)中,一个类的行为或其算法可以在运行时更改。这种类型的设计模式属于行为型模式。在策略模式中,我们创建表示各种策略的对象和一个行为随着策略对象改变而改变的 context 对象。策略对象改变 context 对象的执行算法。2、案例业务实现~案例:同学参加运动会,有不同的球类的玩法策略进行比赛,由他选择具体的策略参与~首先建立玩法接口类package com.design.strategy;/**
2022-03-03 11:24:02 147
原创 easyexcel 使用遇到“Can not close IO”异常处理
easyexcel 使用遇到“Can not close IO”异常处理easyexcel 使用遇到“Can not close IO”异常处理easyexcel 使用遇到“Can not close IO”异常处理出现问题的最初代码如下:主要是用easyexcel写入一堆excel表,最后在封装到zipOutputStream中输出压缩包文件for (Map.Entry<String, PromoteLeaderExportDto> entry : map.entrySet()) {
2021-08-05 18:43:11 24829 17
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人