摘要: ConfigFilter的作用包括: 从配置文件中读取配置 从远程http文件中读取配置 为数据库密码提供加密功能 1 配置ConfigFilter 1.1 配置文件从本地文件系统中读取 <bean id="dataSource" class="com.alibaba.druid.pool.Drui 阅读全文
posted @ 2020-09-30 11:59 酌醉 阅读(466) 评论(0) 推荐(0) 编辑
摘要: CommandLineRunner和ApplicationRunner是Spring Boot所提供的接口,他们都有一个run()方法。所有实现他们的Bean都会在Spring Boot服务启动之后自动地被调用。 阅读目录 前言 如何使用CommandLineRunner接口 用@Order注解去设 阅读全文
posted @ 2020-09-30 09:50 酌醉 阅读(166) 评论(0) 推荐(0) 编辑