configurationproperties乱码quot springboot

Redis在SpringBoot项目中的应用

在项目中使用redis作为缓存,提高用户访问速度。 **实现思路** * 保存缓存:当用户进行页面访问时,前端会向后端发送请求。后端则会向数据库中获取数据,此时我们在请求向数据库获取数据之前先从redis缓存中尝试获取数据,如果redis缓存中存在我们需要的数据,即可直接返回。如果不存在,则在请求向 ......
SpringBoot 项目 Redis

[SprigMVC/SpringBoot] JSON序列化专题之日期序列化问题:接口报Jackson框架错误“InvalidDefinitionException: Java 8 date/time type `java.time.LocalDateTime` not supported by default:...”

# 1 问题描述 请求接口时,`service`层返回到`controller`层的数据结构为`List>`,而`Map`中存在一个`key`=`date`,value type=`java.time.LocalDate`的`Entry`,且日志报如下错误: ``` log InvalidDefin ......

SpringBoot集成Redis

### 依赖包: ``` org.springframework.boot spring-boot-starter-data-redis org.apache.commons commons-pool2 ``` ### 配置文件 如果是 properties 文件,使用: ``` spring.re ......
SpringBoot Redis

SpringBoot04_分模块开发实例

注水预警:这篇博客很水 # 一、结构介绍 ​ 由于这部分代码比较多,建的文件也比较多,所以选择直接上传到了 gitee 的 仓库 中,提交更新也是一步步来的,应该会比博客更清晰。 ​ 分别创建三个模块,每个模块都有自己的数据库和端口号,模块之间通过 resthttp 的方式调用。 ![image-2 ......
开发实例 SpringBoot 实例 模块 04

SpringBoot - 自定义starter

## 一、什么是SpringBoot [starter](https://so.csdn.net/so/search?q=starter&spm=1001.2101.3001.7020)机制 SpringBoot中的starter是一种非常重要的机制(自动化配置),能够抛弃以前繁杂的配置,将其统一集 ......
SpringBoot starter

springboot整合log4j解决依赖冲突

首先将web模块的日志排除 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <exclusions> <exclusion> <grou ......
springboot log4j log4 log 4j

docker desktop 拉取镜像报错 Error response from daemon: Get "XXXX": http: server gave HTTP response to HTTPS client 问题解决

问题: 在windows机器上安装了Docker Desktop软件来进行docker本地部署 拉取镜像仓库时报错 Error response from daemon: Get "XXXX": http: server gave HTTP response to HTTPS client 原因:  ......
response quot 镜像 desktop docker

SpringBoot的基础

## 1、获取配置文件的值:@Value的方式 - yml配置文件 ```yml redis: host: 199.22.22.34 ``` ### 1.1、用法1:普通用法 ```java @Value("${redis.host}") private String sunServerPath; ......
SpringBoot 基础

SpringBoot 多环境部署

#### 多个配置文件 * application.yaml * application-dev.yaml * application-test.yaml * application-prod.yaml #### 加载顺序 * 默认加载 application.yaml * profiles.act ......
SpringBoot

SpringBoot整合OSS文件上传

# 一、注册阿里云账号并开通OSS服务 1、登录阿里云账号 ![image](https://img2023.cnblogs.com/blog/3036686/202305/3036686-20230531130915141-28624998.png) 2、创建一个bucket ![image](h ......
SpringBoot 文件 OSS

解决node-sass安装失败 Cannot download "https://github.com/sass/node-sass/releases/download/binding.nod的问题

执行命令:npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ 将binary指向淘宝镜像即可。 ......
node-sass download sass node releases

SpringBoot 设置HTTP Status Code

HTTP请求响应的内容有很多,包括Body、Cookies、Headers和Status。 我们最常用的是Body、其次Headers、Cookies。而HTTP Status Code关注得最少。 HTTP Status Code 分类分类描述 1** 信息,服务器收到请求,需要请求者继续执行操作 ......
SpringBoot Status HTTP Code

springboot2到spring3的升级变化

1.自动配置的变化 springboot2引入依赖后不需要手动配置属性文件,spingboot3引入依赖后还需手动配置属性文件 比如当我使用springboot3.1.0版本加入mybatis依赖生成springboo项目后,在pom文件加入druid连接池包的依赖,发现不管加哪个版本的druid, ......
springboot2 springboot spring3 spring

java springboot 项目中静态资源无法访问的问题

默认 resource/static 目录下的静态html文件无法访问,需要配置。 您可以在 Spring Boot 的配置类中添加以下内容来手动配置静态资源目录: @Configuration public class WebMvcConfig implements WebMvcConfigure ......
静态 springboot 项目 问题 资源

JS逆向实战15——猿人学第五题 动态cookie乱码增强

# 声明 本文章中所有内容仅供学习交流,抓包内容、敏感网址、数据接口均已做脱敏处理,严禁用于商业用途和非法用途,否则由此产生的一切后果均与作者无关,若有侵权,请联系我立即删除! # 网站 > https://match.yuanrenxue.cn/match/5 # 网站分析 首先 刚进入页面即显示 ......
猿人 乱码 实战 动态 cookie

SpringBoot定义优雅全局统一Restful API 响应框架五

闲话不多说,继续优化 **全局统一Restful API 响应框架** 做到项目通用 接口可扩展。 如果没有看前面几篇文章请先看前面几篇 [SpringBoot定义优雅全局统一Restful API 响应框架](https://mp.weixin.qq.com/s?__biz=Mzg4OTkwNjc ......
全局 SpringBoot 框架 Restful API

java同步mysql的数据到PostgreSQL时报错ERROR: invalid byte sequence for encoding "UTF8": 0x00

最近,同事在做一个功能,通过java程序将mysql中的一张表的数据同步到pgsql中,在同步过程中,插入到pgsql中出现了如下错误: `### Error updating database. Cause: org.postgresql.util.PSQLException: ERROR: in ......
quot PostgreSQL encoding sequence 时报

阿里云验证码短信功能---SpringBoot项目

阿里云官网:https://www.aliyun.com/activity/2023caigouji/shangyuncaigouji?utm_content=se_1013408957 **准备工作** 注册阿里云账号 申请AccessKeyID和AccessKeySecret 搜索“短信服务SM ......
SpringBoot 短信 功能 项目

docker evel=error msg="error reading the kernel parameter net.ipv4.vs.expire_nodest_conn" error="open /proc/sys/net/ipv4/vs/expire_nodest_conn: no such file or directory"

我使用的是docker swarm -#报错 evel=error msg="error reading the kernel parameter net.ipv4.vs.expire_nodest_conn" error="open /proc/sys/net/ipv4/vs/expire_nod ......
expire_nodest_conn quot error expire nodest

SpringBoot项目中使用拦截器进行请求的拦截

在没有拦截器拦截前端请求的情况下,即使用户不进行登录,却依然能够进入系统。这显然是不合理的。这里使用拦截器对其请求进行一个拦截并且过滤。将那些需要需要用户登录才能够展示的界面进行一个拦截,如果用户没有登录,就需要跳转到登录界面进行登录。 **没有拦截器的效果展示** ![](https://img2 ......
SpringBoot 项目

SpringBoot连接Redis失败报错:Unable to connect to Redis; (小白篇)

学习redis一段时间了,现在开始使用springboot整合redis,实现Java与redis数据库的连接与一系列的使用。 但刚开始就给我来了个下马威,直接寄,连接不上redis,在swagger的报错如下: **Unable to connect to Redis; nested except ......
Redis SpringBoot connect Unable to

SpringBoot集成kafka全面实战

一、前戏1、在项目中连接kafka,因为是外网,首先要开放kafka配置文件中的如下配置(其中IP为公网IP), advertised.listeners=PLAINTEXT://112.126.74.249:9092 2、在开始前我们先创建两个topic:topic1、topic2,其分区和副本数 ......
SpringBoot 实战 kafka

Python 读取文件中文乱码

问题描述 今天调试 Python 读取文件的时候发现中乱码了 读取方式 txt = open(filename) print(f"Here's your file {filename}:") print(txt.read()) 效果 E:\worksp_py\hardwary\hardway\fif ......
乱码 文件 Python

kali-linux运行python脚本时出现”word unexpected (expecting ")")“错误的解决

# 前言 在刚刚开始学习网络安全时候,装好了kali准备测试一下。 运行了py结尾的脚本出现了以下错误: ![](https://img2023.cnblogs.com/blog/2572943/202305/2572943-20230531000850176-695077837.png) #解决方 ......
quot 脚本 kali-linux unexpected expecting

Mac电脑复制文件到Window系统会有很多"._"开头的文件

# 解决方法 window上下载"git bash"(链接:https://gitforwindows.org/),然后执行下面的命令进到对应的目录下即可删除"._"开头的文件 ```shell find . -name "._*"|xargs rm ``` ![](https://img2023. ......
文件 quot 开头 Window 系统

springboot接入influxdb

转载请注明出处: 1.添加maven依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> </dependency> <dependency> ......
springboot influxdb

springboot项目启动访问任何html页面报类型转换错误:Failed to convert value of type...

问题: 2023-05-30T21:35:57.495+08:00 WARN 19900 [nio-8080-exec-8] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.method.ann ......
springboot 错误 convert 类型 页面

基于JAVA的springboot+vue学生综合测评系统,附源码+数据库+论文+PPT

**1、项目介绍** 本学生综合测评系统以springboot作为框架,b/s模式以及MySql作为后台运行的数据库,同时使用Tomcat用为系统的服务器。本系统主要包括首页,个人中心,学生管理,试题信息管理,测评试题管理,管理员管理,综合测评管理,系统管理,综合考试管理等功能,通过这些功能的实现基 ......
springboot 源码 数据库 数据 论文

springboot 雪花算法生成的发送到前端id精度丢失

添加注解: @JsonFormat(shape = JsonFormat.Shape.STRING) 用法: ......
前端 精度 算法 springboot 雪花

springboot启动源码

每个Spring Boot项目都有一个主程序启动类,在主程序启动类中有一个启动项目的main()方法, 在该方法中通过执行SpringApplication.run()即可启动整个Spring Boot程序。 问题:那么SpringApplication.run()方法到底是如何做到启动Spring ......
springboot 源码