springboot status http code

SpringBoot中引入多线程

@Async("threadPoolTaskExecutor")public List<GetPayProjectListVo> getPrivateProject(Page page, DeliveryStatisticSqueryDto dto) { return pmProjectInfoMa ......
线程 SpringBoot

springboot 集成redis

1、pom <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 2、yml spring: red ......
springboot redis

使用IDEA运行SpringBoot项目

首先需要下载IDEA专业版,如果是学生的话可以通过学校邮箱免费获得license,下载专业版之后,Help->register激活即可免费使用一年,具体过程参考官网https://sales.jetbrains.com/hc/zh-cn/articles/207154369 下面使用专业版IDEA来 ......
SpringBoot 项目 IDEA

动力节点王鹤SpringBoot3学习笔记——第三章 自动配置

视频链接: ​​动力节点SpringBoot教程【SpringBoot3从入门到项目实战】​​ 第三章 自动配置 启用autoconfigure(自动配置),框架尝试猜测和Bean要使用的Bean,从类路径中查找xxx.jar,创建这个jar中某些需要的Bean。例如我们使用MyBatis访问数据, ......

springboot注册Servlet、Filter、Listener的方式

方式一:注解 @WebServlet @WebFilter @WebListener 在实现类上使用该注解即可一键注册 方式二:配置类 在@Configuration标识的配置类中通过RegistrationBean进行注册 @Bean public ServletRegistrationBean ......
springboot Listener Servlet 方式 Filter

SpringBoot:自定义一个spring-boot-starter,以及maven拉取不到starter依赖的一些常见错误说明

没有太多多余的代码,记录下来主要是为了以后写starter的时候有个模板可以直接拖下来参考。 github项目地址:rain-spring-boot-starter ####操作步骤 starter项目 (1) 新建一个maven项目,项目名推荐命名为:xxxx-spring-boot-starte ......

如何在 SpringBoot 项目中接入 ChartGPT

大家好,我是公子骏。最近体验了火爆全网的 ChartGPT,深刻体会了其强大的能力,这让我们程序猿对AI的未来突然有了广大的畅想空间。 我也在网上看到不少大牛通过 ChartGPT 来获取收益,就寻思着能否自己接入 ChartGPT 的 API 来做些什么事情。 然后到网上找了不少 Java 接入 ......
SpringBoot ChartGPT 项目

SpringBoot 项目使用 Sa-Token 完成登录认证

一、设计思路 对于一些登录之后才能访问的接口(例如:查询我的账号资料),我们通常的做法是增加一层接口校验: 如果校验通过,则:正常返回数据。 如果校验未通过,则:抛出异常,告知其需要先进行登录。 那么,判断会话是否登录的依据是什么?我们先来简单分析一下登录访问流程: 用户提交 name + pass ......
SpringBoot Sa-Token 项目 Token Sa

SpringBoot 导出数据带图片

一、引入的maven依赖 <dependency> <groupId>com.alibaba</groupId> <artifactId>easyexcel</artifactId> <version>3.1.1</version> </dependency> 二、导出的实体类 import com ......
SpringBoot 数据 图片

SpringBoot中集成Redis实现对redis中数据的解析和存储

场景 SpringBoot中操作spring redis的工具类: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/108335645 上面讲的操作redis的工具类,但是对于redis的集成并没做细讲。 下面参考若依框架的实现,从 ......
SpringBoot 数据 Redis redis

2.HTTP头部注入

其余web文章参考:web学习目录 三个参数传递方式,get、post、cookie 1. cookie注入 以sqli-lab第20关为例,注入点cookie中,用Dumb/Dumb登录,包发送到repeater模块 使用单引号有报错,但是加入#号后无报错,此处可以使用报错注入 使用如下语句: C ......
头部 HTTP

git push 出现fatal: unable to access 'http://xxx': The requested URL returned error: 403

问题: cch:requsetDatas leo$ git push origin master remote: Permission to bbb/requsetDatas.git denied to aaa. fatal: unable to access 'https://github.com ......
requested returned access unable fatal

SpringBoot+Netty实现TCP客户端实现接收数据按照16进制解析并存储到Mysql以及Netty断线重连检测与自动重连

场景 在SpringBoot项目中需要对接三方系统,对接协议是TCP,需实现一个TCP客户端接收 服务端发送的数据并按照16进制进行解析数据,然后对数据进行过滤,将指定类型的数据 通过mybatis存储进mysql数据库中。并且当tcp服务端断连时,tcp客户端能定时检测并发起重连。 全流程效果 注 ......
Netty 进制 SpringBoot 客户端 客户

IIS webconfig http重定向https配置

<rule name="redirect to HTTPS" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTP_HOST}" pattern="localhost" negate="true" /> ......
webconfig https http IIS

java springboot controller 方法返回内容过滤

下面是一个例子,对当前项目返回的 BigDecimal 类型进行格式化,前提是返回的类型要么是单个实体,要么是可枚举的实体,如果是 Map 或 其它非自定义实体,可能需要再修改一下代码。 @ControllerAdvice public class MyResponseBodyAdvice impl ......

HTTP 3.0之QUIC优势和TCP弊端

1 HTTP 3.0 1.1 引言 从 HTTP/1.1 到 HTTP/2,HTTP 协议一直都是使用 TCP 作为传输协议。 然而,就在最新的 HTTP/3,HTTP 就直接把 TCP 抛弃了,向孤立无援的 UDP 伸出了援手,基于 UDP 协议的基础上,在应用层实现了一个可靠的传输协议 —— Q ......
弊端 优势 HTTP QUIC 3.0

IDEA启动SpringBoot JDK报错

问题 创建的SpringBoot项目启动时报错 Error:java:无效的目标发行版本:17 解决办法 类似此项,基本就是JDK配置没正确。 按照下图显示修改配置即可 Setting设置 Project Structure配置 1 2 3 ......
SpringBoot IDEA JDK

Server-Sent Events Is it http2 server push?

Person: Please give me an example where gin implements server push and the front end receives data. ChatGPT: Sure! Here's an example of how you could ......
Server-Sent Server Events server http2

SpringBoot——多环境开发

多环境开发 多环境启动 SpringBoot3.0以上需使用另一种格式 # 设置启用的环境 spring: profiles: active: pro # 开发 spring: config: activate: on-profile: dev server: port: 80 # 生产 sprin ......
SpringBoot 环境

SpringBoot——基础配置

基础配置 配置格式 SpringBoot提供了多种属性配置方法 application.properties server.port=80 application.yml server: port: 81 application.yaml server: port: 82 SpringBoot配置文 ......
SpringBoot 基础

HTTP Get请求的参数带空格如何处理

在 URL 中,空格会被转义成 %20,因此在 GET 请求的参数中,可以将空格替换为 %20,或者使用加号(+)代替空格。这些特殊字符在 URL 中都有特殊的含义,因此需要进行编码,以便正确传递参数。 例如,假设您要向服务器发送以下 GET 请求: http://example.com/searc ......
空格 参数 HTTP Get

SpringBoot——更换Tomcat服务器为 Jetty 服务器

Jetty服务器(可能会用到) Jetty 比 Tomcat更轻量级,可拓展性更强(相较于Tomcat),谷歌应用引擎(GAE)已经全面切换为Jetty 首先要启动Jetty服务器 --> 到nexus.exe文件夹中cmd输入nexus.exe /run nexus 使用maven依赖管理变更起步 ......
服务器 SpringBoot Tomcat Jetty

springboot获取小程序二维码图片

获取小程序二维码前需要获取小程序的token。这个不赘述了。 获取小程序二维码官方文档上找到2个处理的Api接口。经测试,现有一个能用的 https://api.weixin.qq.com/wxa/getwxacode直接上代码。官网上对于获取二维码返回参数是一个Buffer类型的buffer字段。 ......
springboot 程序 图片

SpringBoot

什么是微服务:一个程序有很多模块,把所有模块分割开,在不同的主机上分配不同的模块组合,即微服务 SpringBoot程序结构:application.propertises可以替换成application.yaml;所有自己添加的的代码都在Spring Boot自动生成的class同级下书写: he ......
SpringBoot

http-server 本地运行前端项目

1.安装http-server 1 npm install -g http-server 2.启动: http-server ......
前端 http-server 项目 server http

SpringBoot2.0 + MyBatis3 + Druid + MySQL5.7 + Maven3.5 + JDK1.8 demo

git地址:https://github.com/huangdan92/springbootDruid/blob/main/README.md 项目测试: ......

SpringBoot报错:Error resolving template [index], template might not exist or might not be accessible by any of the configured Template Resolvers

springboot项目正常启动,但是在访问页面的时候报错,错误信息如下: Whitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as a fallback.​ ......

C#HTTP请求RestSharp.RestClient/HttpWebRequest发起https请求报错

C# RestSharp.RestClient/HttpWebRequest发起https请求时返回总是空 response.Content总是空 查看response.ErrorMessage属性发现报错信息 The SSL connection could not be established, ......

Java对接云mas发送短信(http方式)

一、官网下载对接文档 http://mas.10086.cn/login 二、登录云平台配置账户 管理–>接口管理–>新建短信接口建立自己的用户信息 三、建立好账户后导出证书(用于对接) 四、编写Java对接代码 注:网关签名编码既第三步导出签名的编码 1.application.yml #短信验证 ......
短信 方式 Java http mas

springboot服务启动成功之后,自动停止,抛Process finished with exit code -1

最近公司要求,切换openjdk之后。平稳的使用了一段时间。这两天本地每次启动spring boot服务后,就会自动停止。并抛出Process finished with exit code -1 最开始怀疑是不是IDE的问题,然后使用java命令执行服务jar包,也会出现同样的问题。 再尝试着更换 ......
springboot finished Process exit code