文章分类 - spring boot
摘要:maven 包 https://mvnrepository.com/. https://central.sonatype.com/artifact/co.elastic.apm/apm-agent-api jar xf rlogin-kpi-report-batch-0.0.1-SNAPSHOT.j
阅读全文
摘要:https://www.cnblogs.com/pingguomang/p/17639759.html
阅读全文
摘要:https://central.sonatype.com/artifact/co.elastic.apm/apm-agent-attach-cli https://mvnrepository.com/artifact/co.elastic.apm/apm-agent-attach/1.52.1 <m
阅读全文
摘要:在使用 @KafkaListener 处理批量数据时,如果出现错误,你可能希望配置重试策略来处理这些错误。Spring Kafka 提供了多种方式来配置重试策略,包括使用 DefaultErrorHandler 和 RetryTemplate。以下是如何配置批量数据处理的重试策略的示例。 1. 配置
阅读全文
摘要:https://learn.microsoft.com/zh-cn/azure/spring-apps/basic-standard/how-to-elastic-apm-java-agent-monitor
阅读全文
摘要:1、项目打上断点 2、dubug启动 3、请求发送后会调到断点 4、按F8 在 Debug 模式下,进入下一步,如果当前行断点是一个方法,则不进入当前方法体内,跳到下一条执行语句 5、按F7在 Debug 模式下,进入下一步,如果当前行断点是一个方法,则进入当前方法体内,如果该方法体还有方法,则会进
阅读全文
摘要:MANUAL 模式 提交时机:在监听器方法(即处理消息的方法)执行完毕后,偏移量不会自动提交。您需要在监听器方法中显式调用 Acknowledgment.acknowledge() 方法来提交偏移量。 行为:调用 Acknowledgment.acknowledge() 后,Spring Kafka
阅读全文
摘要:<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the
阅读全文
摘要:/** * @author 念兮为美 * @datetime 2022/12/8 16:12 * @desc 文件控制器 */ @Api(tags = "文件模块") @RestController @RequestMapping("/file") @Slf4j public class FileC
阅读全文
摘要:经过两天的尝试,最终解决办法:1.将maven的相关配置及电脑环境变量恢复到最终出错之前2.在终端(Terminal)执行: mvn idea:idea之后不再报错,且external libraries中导入了依赖 但仍然有一个问题:maven右侧中仍然没有plugins和dependenties
阅读全文
摘要:https://www.python100.com/html/88840.html
阅读全文
摘要:偶然碰到一个需要给xml传一个String类型和一个Integer类型的需求,当时心想用map感觉有点太浪费,所以专门研究了下各种方式。 方法一:不需要写parameterType参数 public List<XXXBean> getXXXBeanList(String xxId, String x
阅读全文
摘要:package com.example.demo.filter; import org.springframework.stereotype.Component; import javax.servlet.*; import javax.servlet.http.HttpServlet; impor
阅读全文
摘要:过滤: package com.example.demo.filter; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Component; import javax.servlet.*; import
阅读全文
摘要:1.Maven安装下载maven(http://maven.apache.org/download.cgi),解压,配置环境变量M2_HOME和PATH(命令mvn --version查看版本) M2_HOME=E:\02-develop\08-maven\apache-maven-3.5.2 PA
阅读全文
摘要:FastJSON是一个Java语言编写的高性能,功能完善,完全支持http://json.org的标准的JSON库。多了不说了,百度一下一大把。 在此,简单的总结一下自己用过,测试过的方法。 如果使用Maven,在pom.xml文件加入以下依赖。 1 <dependency> 2 <groupId>
阅读全文