
配置文件
文章平均质量分 61
可——叹——落叶飘零
不食人间烟火
展开
-
springboot使用默认的logback配置logback-spring.xml每天一个日志文件
文章目录工程目录application.yml配置logback-spring.xml内容部署启动工程目录springboot配置每天一个日志文件logback-spring.xmlspringboot工程配置文件可以放在多个地方,可以直接放在resources目录下,也可以放在根目录下的config目录,部署运行没问题,但是开发时启动的时候需要把config目录标识为资源文件夹才会生效logback-spring.xml位置如下application.yml配置spring: prof原创 2022-04-12 15:34:58 · 10064 阅读 · 5 评论 -
common-pool2配置ftpClient对象连接池
文章目录依赖ymlFtpClientPoolFactoryFtpClientPool使用依赖<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-pool2</artifactId></dependency><dependency> <groupId>commons-net</gro原创 2022-02-19 19:42:07 · 1029 阅读 · 4 评论 -
springboot使用jasypt对配置文件加密,加密数据库连接
文章目录依赖springboot配置通过明文获取加密的值依赖<dependency> <groupId>com.github.ulisesbocchio</groupId> <artifactId>jasypt-spring-boot-starter</artifactId> <version>1.14</version></dependency>springboot配置yml原创 2022-02-15 17:05:52 · 1252 阅读 · 1 评论 -
elasticsearch部分常用操作
文章目录集群搭建7.4.1版本,配置linux优化索引映射创建,优化创建索引es_persist_3创建映射mapping es_persist_3创建索引 es_persist_4创建mapping es_persist_4es的常用指令跨集群数据迁移reindex迁移reindex取消命令reindex查看进度(可以看到node_id:task_id,任务数等)冷数据备份快照到磁盘集群安全重启集群搭建7.4.1版本,配置3台机器组成一个集群,分别为:a,b,ca:编辑a的config/elast原创 2021-12-06 16:10:33 · 2562 阅读 · 2 评论 -
logstash多任务多管道pipeline配置启动,方案分析
文章目录6.0以下方案6.0以下方案分析启动方式6.0以上方案启动方式6.0以下方案logstash处理多个输入输出源方案没有使用多管道,两个任务,jdbc demo手写自定义mysql.confinput { stdin {} jdbc { # 第一个任务对应一个type; type => "type_1" # ...省略 # 同步频率(分 时 天 月 年),默认每分钟同步一次; schedu原创 2021-11-26 13:10:54 · 3935 阅读 · 0 评论 -
Springboot的yml配置文件
文章目录HikariCPDruidMybatis-plusLog4j等级DubboSpringMVC视图解析器Thymeleaf暴露监控监控异步线程池多环境拆分选择HikariCP过滤不加载数据源@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)spring: datasource: url: jdbc:mysql://127.0.0.1:3306/db01?serverTimezone=GMT%2B8原创 2021-06-14 13:49:18 · 1154 阅读 · 0 评论