摘要: 首先,需要Environment中的acceptsfiles(参数1),这个方法来判断是是否是参数1中设置好的环境,返回的是Boolean类型。 其中参数1的话是通过Profiles 中的Of(参数2)的来指定的,参数2的话就是指定配置文件或者就是项目环境,比如:test/dev/pro 阅读全文
posted @ 2023-03-15 21:29 Silence1020 阅读(29) 评论(0) 推荐(0)
摘要: #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or a 阅读全文
posted @ 2023-02-10 10:44 Silence1020 阅读(30) 评论(0) 推荐(0)
摘要: Lamda表达式推演 在推演Lanmda表达式前,需要知道什么是函数式接口。 函数式接口 只包含唯一一个抽象方法的接口,就是函数式接口。 //无参函数接口 public interface Runnabe{ public abstract void run(); } //有参函数接口 public 阅读全文
posted @ 2022-12-27 23:56 Silence1020 阅读(25) 评论(0) 推荐(0)