04 2020 档案
摘要:springboot banner 默认显示的图案是可以自定义,在src/main/resource/目录下新建一个banner.txt文件,然后将ASCII字符画复制进去,就能替换默认的banner了,比如在TXT文件中 添加如下字符画: _ _ _ _ _ | | | | | | | | | |
阅读全文
摘要:4、ApplicationArguments applicationArguments = new DefaultApplicationArguments(args); listeners.starting()执行完后,接着执行new DefaultApplicationArguments对象。该对
阅读全文
摘要:run方法分析 //run方法内容 public ConfigurableApplicationContext run(String... args) { // 计时器 StopWatch stopWatch = new StopWatch(); stopWatch.start(); Configu
阅读全文
摘要:StopWatch 是一个计时器。是spring自带的一个工具类,通过它可方便的对程序部分代码进行计时操作。StopWatch类结构如下: /* * Copyright 2002-2016 the original author or authors. * * Licensed under the
阅读全文
摘要:SpringBoot启动入口 @SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication.run(Application.class, arg
阅读全文
浙公网安备 33010602011771号