摘要:
@Slf4jpublic class NIOServer { private InetAddress addr; private int port; private Selector selector; private static i... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(318)
评论(0)
推荐(0)
摘要:
public static void main(String[] args) { SpringApplication.run(dwdp.class, args); try { ServerSocket ... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(260)
评论(0)
推荐(0)
摘要:
1.实现ApplicationRunner 2.添加注解 @Order(value = 1) 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(34)
评论(0)
推荐(0)
摘要:
nginx实现资源压缩的原理是通过ngx_http_gzip_module模块拦截请求,并对需要做gzip的类型做gzip压缩,该模块是默认基础的,不需要重新编译,直接开启即可。 基本配置 # 开启gzipgzip on;# 启用gzip压缩的最小文件,小于设... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(88)
评论(0)
推荐(0)
摘要:
问题:一次开发中遇到一个springboot的异常:Failed to parse multipart servlet request; nested exception is java.io.IOException; 原因:为啥上传文件失败,从异常信息上看,... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(8688)
评论(1)
推荐(0)
摘要:
/** * @author lrx * @description: TODO String,HEX工具类 * @date 2022/1/5 15:12 */public class StringToHexUtils { /** * 字符串转换为... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(95)
评论(0)
推荐(0)
摘要:
PostMan接口测试传递Map类型参数 Step 1: 设置Header Step 2: 设置参数体 以json格式写好数据 Step 3:Controller层方法体参数设置 测试结果: 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(620)
评论(0)
推荐(0)
摘要:
基本配置 第一步 1. 打开Git Bash 2. 设置用户信息 git config --global user.name “itcast” git config --global user.email “hello@itcast.cn” 查看配置... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(128)
评论(0)
推荐(0)
mysql5.7 1819_mysql5.7 ERROR 1819 (HY000): Your password does not satisfy the current policy requir.
摘要:
首先,修改validate_password_policy参数的值 mysql> set global validate_password_policy=0; Query OK,0 rows affected (0.00 sec) validate_passw... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(39)
评论(0)
推荐(0)
摘要:
mysql连数据库的时候报错: 1251 client does not support authentication protocol requested by server;consider upgrading Mysql client ERROR 139... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(93)
评论(0)
推荐(0)
浙公网安备 33010602011771号