SpringBoot启动加载类ApplicationRunner 有时希望项目在启动的时候加载一些系统参数,就要用到ApplicationRunner ApplicationRunner是一个接口,我们需要实现它,并重写run()方法,当项目启动时,run()方法便会自动执行 @Component @Order(value=1) public class StartLoader implements ApplicationRunner { @Override public void run(Ap
很常见的情况:我想同步/myweb下的 一些php文件 , 但是不想复制/myweb/log/里边的一些日志文件,因为这些文件太大了,备份也是没有意义的. 现在如果想避开某个路径 直接添加—exclude 即可 比如—exclude “./log” –exclude ‘./log/file’ Note: the directory path is relative to the folder you are backing up. rsync备份时排除指定目录或文件 要排除指定目录,可以在客