![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Springboot
茗扬四海
不断向上
展开
-
SpringBoot的参数配置加载顺序:
命令行参数; 来自java:comp/env的JNDI属性; Java系统属性(System.getProperties()); 操作系统环境变量; RandomValuePropertySource配置的random.*属性值; jar包外部的application-{profile}.properties或application.yml(带spring.profile)配置文件; jar包内部的application-{profile}.properties或application.ym(带sprin.转载 2021-01-18 15:43:49 · 147 阅读 · 0 评论 -
ConfigurableApplicationContext#run方法之第二个方法configureHeadlessProperty
this.configureHeadlessProperty(); private void configureHeadlessProperty() { //将java.awt.headless设置为true,表示运行在服务器器端,在没有显示器器和鼠标键盘的模式下工作,模拟 输入输出设备功能。 System.setProperty("java.awt.headless", System.getProperty("java.awt.headless", B原创 2020-11-17 10:30:15 · 649 阅读 · 0 评论 -
ConfigurableApplicationContext#run方法之第一个方法StopWatch
StopWatch stopWatch = new StopWatch(); this(""); public StopWatch(String id) { //报留任务清单设置为true this.keepTaskList = true; //初始化一个任务清单 this.taskList = new LinkedList(); //id设置为空 this.id = id; } 我们再来看下start方法 stopWatch.start(); public void s.原创 2020-11-17 10:27:52 · 623 阅读 · 0 评论