scheduling springboot execution task

SpringBoot 2 动态加载 自定义 Properties

YML文件配置 public static void initializeYml() throws IOException { YamlPropertiesFactoryBean factoryBean = new YamlPropertiesFactoryBean(); factoryBean.s ......
SpringBoot Properties 动态

springboot 使用 EasyExcel 通过模板导出EXCEL 带多个动态列表

1.模板定义如下: 导出效果如下 源码如下: @GetMapping(value = "/exportDynamicExcel") @ApiOperation(value = "导出动态表格") public void exportDynamicExcel(HttpServletResponse r ......
springboot EasyExcel 多个 模板 动态

springboot 的 properties 文件之间的联系

application.properties 为全局配置文件,默认加载这里的内容 application-dev.properties 为开发配置文件, 会覆盖 全局配置文件内容 application-test.properties 为测试配置文件,会覆盖 全局配置文件 application-p ......
springboot properties 之间 文件

进程注入之Portable Executable Injection,PE注入的核心是创建远程线程,注意重定位表修复

PE(Portable Executable)注入是一种常见的代码注入技术,主要用于在目标进程中执行恶意代码。以下是PE注入的基本流程:1. 获取当前PE映像的基地址:使用GetModuleHandle(NULL)函数获取当前PE映像(即要注入的代码)的基地址。2. 复制PE映像:使用Virtual ......
线程 Executable Injection Portable 进程

springBoot 启动报错: If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.

原因 其实这个异常在SpringBoot中是一个比较常见的异常,一般是因为SpringBoot自动配置时,检测到我们添加了MySQL、Oracle、Mybatis等和数据库相关的依赖包,结果我们的配置文件中却没有添加数据库相关的配置,比如: spring: datasource: driver-cl ......

Springboot 的 maven项目利用 maven插件构建 docker 镜像(免 DockerFile编写)

Springboot 的 maven项目利用 maven插件构建 docker 镜像(免 DockerFile编写) 本小节目的是springboot 项目 maven 插件构建容器 实验步骤: 1. 本地创建springboot项目,写业务逻辑代码 2.提交代码到远程 git仓库 3.在 linu ......
maven Springboot DockerFile 插件 镜像

【面试题精讲】说一说springboot加载配置文件优先级

有的时候博客内容会有变动,首发博客是最新的,其他博客地址可能会未同步,认准https://blog.zysicyj.top 首发博客地址 文章更新计划 系列文章地址 Spring Boot 加载配置文件的优先级是根据不同的位置和命名规则来确定的。下面按照优先级从高到低的顺序来介绍: 命令行参数:通过 ......
优先级 springboot 文件

SpringBoot2集成RabbitMQ(注解+回调)

一、概述 RabbitMQ 是实现 AMQP(高级消息队列协议)的消息中间件的一种,最初起源于金融系统,用于在分布式系统中存储转发消息,在易用性、扩展性、高可用性等方面表现不俗。RabbitMQ 主要是为了实现系统之间的双向解耦而实现的。当生产者大量产生数据时,消费者无法快速消费,那么需要一个中间层 ......
注解 SpringBoot2 SpringBoot RabbitMQ

05-springboot

SpingBoot 前言 导学 资料!版权 本文章为二创作品!原创在这里:狂神说笔记——SpringBoot 快速入门 20 - subeiLY - 博客园 (cnblogs.com) 参考视频为:https://www.bilibili.com/video/BV1PE411i7CV/ 正文 Spr ......
springboot 05

SpringBoot教程(十七) | SpringBoot中ApplicationEvent用法

前言 我们前面的文章中讲解过RabbitMQ的用法,所谓MQ就是一种发布订阅模式的消息模型。在Spring中其实本身也为我们提供了一种发布订阅模式的事件处理方式,就是ApplicationEvent和 ApplicationListener,这是一种基于观察者模式实现事件监听功能。也已帮助我们完成业 ......
SpringBoot ApplicationEvent 教程

Springboot 全局日期时间格式处理

From: https://www.cnblogs.com/Baker-Street/p/16156297.html 大家伙在日常开发中可能都遇到过,前端传递的时间字符串,后台如果用日期接收(Date或者jdk8的Local日期)接收,经mvc接收后就报错了,先解析原因: 1. get请求和post ......
全局 Springboot 日期 格式 时间

【精品】SpringBoot统一日期类型处理

From: https://blog.csdn.net/lianghecai52171314/article/details/127106664 方案一:给日期字段添加注解/** * 创建时间 *///返回时间类型@JsonFormat(pattern = GlobalConst.DATETIME_ ......
SpringBoot 日期 类型 精品

SpringBoot集成openGauss

1.pom依赖 <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <depend ......
SpringBoot openGauss

SpringBoot + MDC 实现全链路调用日志跟踪

简介:MDC(Mapped Diagnostic Context,映射调试上下文)是 log4j 、logback及log4j2 提供的一种方便在多线程条件下记录日志的功能。MDC 可以看成是一个与当前线程绑定的哈希表 ,可以往其中添加键值对。MDC 中包含的内容可以被同一线程中执行的代码所访问 。 ......
链路 SpringBoot 日志 MDC

3种 Springboot 全局时间格式化方式,别再写重复代码了

From: https://developer.aliyun.com/article/771395 简介: 别再写重复代码了 本文收录在个人博客:www.chengxy-nds.top,技术资料共享,同进步 时间格式化在项目中使用频率是非常高的,当我们的 API 接口返回结果,需要对其中某一个 da ......
全局 Springboot 代码 方式 格式

python3的schedule模块

一、schedule模块: 1、基本操作: import schedule import time def hello(name): print("hello %s" % name) def job(): print("I'm working...") # 每十分钟执行任务 schedule.eve ......
模块 schedule python3 python

springboot编译失败

拉了一个新分支从master环境 然后编译不通过了 java: You aren't using a compiler supported by lombok, so lombok will not work andhas been disabled.Your processoris: comsun ......
springboot

springboot线程池底的使用

1.简单使用 一、配置类 @Configuration @EnableAsync public class SpringAsyncConfig { @Bean("taskExecutor") public Executor asyncServiceExecutor() { ThreadPoolTas ......
池底 线程 springboot

springboot 配置 mysql

pom.xml: <!-- database --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <d ......
springboot mysql

linux部署springboot

安装jre 第一步:查看Linux系统中是否已存在JRE 首先,我们需要查看Linux系统中是否已经安装了Java运行时环境。我们可以使用命令“ java –version”来查看,如果终端提示“command not found”,则表明JRE未安装;如果显示java版本信息,则表明已安装JRE。 ......
springboot linux

SpringBoot 后端配置 Https 教程

以阿里云为例子 1. 申请 SSL 证书 1. 注册域名 打开阿里云官网,搜索域名 点击域名注册,输入域名,点击搜索 选择心仪的域名,点击购买,打钱 进入域名控制台,进行实名认证 2. 申请 SSL 证书 打开阿里云官网,搜索 SSL 证书 点击免费证书,领取 20 张券(一年可以领 20 张,可以 ......
SpringBoot 教程 Https

聊聊springboot自动装配出现的TypeNotPresentExceptionProxy异常排查

前言 正文开始前,我们做个小测试,假设我们封装了一个springboot starter,其自动装配类形如下内容 @Configuration @EnableConfigurationProperties({ApolloRefreshProperties.class}) public class A ......

Springboot使用@value获取配置文件参数

使用@value获取yml参数值 @Value("${value}") // 多级使用 . 连接 例:${value.value} private String value; @value获取不到值的情况 // 错误1:使用了static或者final修饰value private static S ......
Springboot 参数 文件 value

Springboot中使用线程池的三种方式

前言 多线程是每个程序员的噩梦,用得好可以提升效率很爽,用得不好就是埋汰的火葬场。 这里不深入介绍,主要是讲解一些标准用法,熟读唐诗三百首,不会作诗也会吟。 这里就介绍一下springboot中的多线程的使用,使用线程连接池去异步执行业务方法。 由于代码中包含详细注释,也为了保持文章的整洁性,我就不 ......
线程 Springboot 方式

springboot中配置druid的依赖,与application.yml中设置druid的相关配置

2023-09-18 <dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-starter</artifactId> <version>1.2.16</version> </dependency> appl ......
druid application springboot yml

SpringBoot 启动时报错Unable to start embedded Tomcat

导读 最近公司有个gradle构建的工程,需要改造成maven方式构建(点我直达)。转为maven后,启动时一直报tomcat错误,最终排查是因为servlet-api这个包导致的依赖冲突,将这个依赖排除即可启动 解决 排除依赖,检查项目是否包含:javax.servlet-api <exclusi ......
SpringBoot embedded 时报 Unable Tomcat

Springboot简单功能示例-5 使用JWT进行授权认证

博主尝试通过gitee的发行版,使用Springboot为基础框架,逐步整合JWT、JPA、VUE等常用功能项目。【本节完成】使用JWT规范完成登录、确权、登出等操作,分别对html请求和json请求进行处理 ......
示例 Springboot 功能 JWT

启动一个springboot项目

最终效果 在idea中 package com.fqs.helloworld.controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.anno ......
springboot 项目

springboot中文件上传的controller与配置的文件上传的最大容量

2023-09-18 package com.hh.controller; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Controller; import org.springframework.w ......
文件 springboot controller 容量

springboot整合elasticsearch-RestHighLevelClient api查询

1. 依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-elasticsearch</artifactId> </dependency> <dependen ......