摘要: springboot banner 默认显示的图案是可以自定义,在src/main/resource/目录下新建一个banner.txt文件,然后将ASCII字符画复制进去,就能替换默认的banner了,比如在TXT文件中 添加如下字符画: _ _ _ _ _ | | | | | | | | | | 阅读全文
posted @ 2020-04-26 23:06 WRS+ 阅读(161) 评论(0) 推荐(0)
摘要: 4、ApplicationArguments applicationArguments = new DefaultApplicationArguments(args); listeners.starting()执行完后,接着执行new DefaultApplicationArguments对象。该对 阅读全文
posted @ 2020-04-26 17:39 WRS+ 阅读(202) 评论(0) 推荐(0)
摘要: run方法分析 //run方法内容 public ConfigurableApplicationContext run(String... args) { // 计时器 StopWatch stopWatch = new StopWatch(); stopWatch.start(); Configu 阅读全文
posted @ 2020-04-24 12:01 WRS+ 阅读(338) 评论(0) 推荐(0)
摘要: StopWatch 是一个计时器。是spring自带的一个工具类,通过它可方便的对程序部分代码进行计时操作。StopWatch类结构如下: /* * Copyright 2002-2016 the original author or authors. * * Licensed under the 阅读全文
posted @ 2020-04-21 22:04 WRS+ 阅读(421) 评论(0) 推荐(0)
摘要: SpringBoot启动入口 @SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication.run(Application.class, arg 阅读全文
posted @ 2020-04-21 15:34 WRS+ 阅读(200) 评论(0) 推荐(0)
摘要: spring boot 解放程序员的框架、利用“约定优于配置“理念、零配置的体验。开始流行起来了。maven创建spring boot 体验。 1、使用idea 创建maven工程、在pom.xml 文件中添加: <parent> <groupId>org.springframework.boot< 阅读全文
posted @ 2019-07-01 15:42 WRS+ 阅读(116) 评论(0) 推荐(0)