banner
指数爆炸

指数爆炸

Welcome!

异常

Nginx 鉴权时,检查的并不是应用级别的状态码
当我们使用 nginx 的 auth_request 指令 进行鉴权时,并不会检查 HTTP 响应的主体的状态码,它只关心 HTTP 响应的状态码 应用级别的状态码:使用自己 Result 对象封装的状态码,它们在响应时被包含在 HTTP 响应的主体中 Copy impo…
字符串转 json 之前,多做一步
下面这段代码乍一看天衣无缝: Copy // 定义格式 final MediaType MEDIA_TYPE_MARKDOWN = MediaType.parse("application/json; charset=UTF-8"); // 创建对象 final…
在测试类中依赖注入,别忘了 `@RunWith(SpringRunner.class)`
以下这个测试类,乍一看一点毛病没有,但是运行后,一直显示 ZsxqApi 没有注入进来,是 null Copy @SpringBootTest public class AppTest { @Value("${ChatBot-api.groupId…
解决跨域访问
在前端解决# 设置各种响应头,用于在服务器响应中告知浏览器允许跨域请求。通过设置这些响应头,服务器告知浏览器在跨域请求时应该如何处理。 在后端解决# 在 Controller 层添加注释 @CrossOrigin @CrossOrigin注释实际上在后台将自动设置Access…
cover

Spring web访问错误:Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback.

Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Mon Sep 25 11:27:37 CST…
cover
cover

构建maven报错【java: 错误: 不支持发行版本 5】

解决办法:修改 maven-project_1 处的后面的目标字节码版本,把 1.5 修改为 17
关于vue文件的命名异常
E:\VScode\vue\vue_1\src\views\root\staff.vue 1:1 error Component name "staff" should always be multi-word vue/multi-word-component-names 组件…
【Mysql】Communications link failure,The last packet sent successfully to the server was 0 millisecond
今天打开 DataGrip 的时候突然给我报了这么一个异常。🤬 解决办法: 检查 MySQL 服务器是否已启动。在 Windows 上,可以通过 “服务” 应用程序检查 MySQL 服务是否正在运行。如果未运行,请启动它。 检查您的网络连接是否正常。如果您的网络连接不正常…
java.lang.ArrayIndexOutOfBoundsException: arraycopy: length -1 is negative
解决办法: 第一种:在那个为空的.txt文件里填上一些内容 第二种:read,write的时候,不要read和write一个数组。而是一个字节一个字节的read和write
java.lang.ClassCastException
Exception in thread "main" java.lang.ClassCastException: class itheima11.student1 cannot be cast to class java.lang.Comparable (itheima11…
Ownership of this blog data is guaranteed by blockchain and smart contracts to the creator alone.