上一页 1 2 3 4 5 6 7 ··· 20 下一页
摘要: Spring IOC 初始化刷新流程:https://www.cnblogs.com/jhxxb/p/13609289.html 这一步主要是配置工厂的标准上下文特征 方法源码 public abstract class AbstractApplicationContext extends Defa 阅读全文
posted @ 2020-12-07 14:18 江湖小小白 阅读(599) 评论(0) 推荐(0) 编辑
摘要: Spring IOC 初始化刷新流程:https://www.cnblogs.com/jhxxb/p/13609289.html 方法源码 public abstract class AbstractApplicationContext extends DefaultResourceLoader i 阅读全文
posted @ 2020-12-07 14:16 江湖小小白 阅读(382) 评论(0) 推荐(0) 编辑
摘要: Spring IOC 初始化刷新流程:https://www.cnblogs.com/jhxxb/p/13609289.html 方法源码 public abstract class AbstractApplicationContext extends DefaultResourceLoader i 阅读全文
posted @ 2020-12-07 14:14 江湖小小白 阅读(353) 评论(0) 推荐(0) 编辑
摘要: Spring Web 环境下(存在父子容器),注解驱动容器实例为:AnnotationConfigWebApplicationContext,XML 配置驱动容器实例为:XmlWebApplicationContext SpringBoot Web 环境下容器实例为(单一容器):Annotation 阅读全文
posted @ 2020-12-07 14:11 江湖小小白 阅读(928) 评论(0) 推荐(0) 编辑
摘要: 程序中定义数组是为了实现将离散变量变为连续变量(变量内存单元连续),利用循环使程序处理简单化。 一、一维数组 定义与赋值 char arr[10]; // 循环赋值 for (int i = 0; i < 10; ++i) { arr[i] = 'A' + i; } for (int i = 0; 阅读全文
posted @ 2020-11-06 10:44 江湖小小白 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 永久删除 Git 提交的文件,减小 .git 文件夹大小。 这里使用 BFG:https://rtyley.github.io/bfg-repo-cleaner/ # 使用 --mirror(--bare) 参数 clone git repo git clone --mirror git://exa 阅读全文
posted @ 2020-10-10 15:27 江湖小小白 阅读(590) 评论(0) 推荐(0) 编辑
摘要: 限制内存大小 查看当前运行的 Redis 所使用的配置文件 windows 直接打开任务管理器查看 linux ps -ef | grep redis 没有配置内存大小或配置为 0 的话,32 位系统上默认为 3G,64 位系统上无限制。所以一般都要配置一下,单位是 bytes 字节。推荐设置为物理 阅读全文
posted @ 2020-09-16 09:51 江湖小小白 阅读(7491) 评论(0) 推荐(0) 编辑
摘要: 搭建 Docker 本地仓库:https://www.cnblogs.com/jhxxb/p/13647369.html Maven 配置,使用 jlb 插件 <finalName>ImageName</finalName> <!-- 多次构建后,清理积累的无用镜像:docker image pru 阅读全文
posted @ 2020-09-14 16:39 江湖小小白 阅读(736) 评论(0) 推荐(0) 编辑
摘要: 安装 Docker、Docker-Compose:https://www.cnblogs.com/jhxxb/p/11410816.html Harbor 一、下载安装 Harbor 下载 Harbor(harbor-offline-installer):https://github.com/goh 阅读全文
posted @ 2020-09-11 09:45 江湖小小白 阅读(703) 评论(0) 推荐(0) 编辑
摘要: Namespace Linux 初始化 init 进程(进程号为 1)时会为每个 namespaces 类型创建一个实例。后面其它进程可以创建新的 namespaces 或加入已有的 namespaces。namespace 存在父子嵌套关系。 每个进程都有 /proc/[pid]/ns/ 目录,查 阅读全文
posted @ 2020-09-10 18:11 江湖小小白 阅读(4804) 评论(0) 推荐(0) 编辑
摘要: SpringBoot 启动默认没有父子容器,只有一个容器 一、调试环境 依赖使用 Maven 管理,只用导入 spring-context 即可,这里的版本为 5.2.7 通常使用 spring 有两种配置方式:注解和配置文件 public static void main(String[] arg 阅读全文
posted @ 2020-09-07 18:38 江湖小小白 阅读(2014) 评论(0) 推荐(0) 编辑
摘要: 继承 SpringBootServletInitializer 类,重写 configure 方法 @SpringBootApplication public class SpisApplication extends SpringBootServletInitializer { public st 阅读全文
posted @ 2020-09-01 16:26 江湖小小白 阅读(752) 评论(0) 推荐(0) 编辑
摘要: 加载一个 xml <context:property-placeholder ignore-unresolvable="true" location="classpath:abc.properties"/> java @PropertySource("classpath:app.properties 阅读全文
posted @ 2020-08-31 14:31 江湖小小白 阅读(1690) 评论(0) 推荐(0) 编辑
摘要: 通过 @SpringBootApplication 注解导入 @SpringBootConfiguration @EnableAutoConfiguration @ComponentScan(excludeFilters = { @Filter(type = FilterType.CUSTOM, c 阅读全文
posted @ 2020-08-28 09:56 江湖小小白 阅读(3253) 评论(0) 推荐(0) 编辑
摘要: 当要把依赖包打包进 jar 时,自己重写了某些依赖包的类,这时会被依赖包的类覆盖(相当于被还原了) 使用 maven-shade-plugin 打包可以排除掉依赖包中的一些类或文件 <plugin> <groupId>org.apache.maven.plugins</groupId> <artif 阅读全文
posted @ 2020-08-26 08:56 江湖小小白 阅读(3386) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 20 下一页