摘要:
1.在我们对接设备的数据时,有用到upd传输数据。 服务端: public static void main(String[] args) throws IOException { SpringApplication.run(DongqingW... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(236)
评论(0)
推荐(0)
摘要:
server { listen 8017; #server_name anitt.cn; # Vue路由模式为history需添加的配置 location / { if ... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(27)
评论(0)
推荐(0)
摘要:
package com.toncent.core.shiro.filter;import org.springframework.stereotype.Component;import javax.servlet.*;import javax.servlet.... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(47)
评论(0)
推荐(0)
摘要:
在 linux 上搭建 mqtt 服务器并不难,主要就是用到了 mosquitto 这款消息代理服务软件。其采用发布 / 订阅模式传输机制,轻量、简 单、开放并易于实现,被广泛应用于物联网之中。 Linux 版本: centos7.... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(360)
评论(0)
推荐(0)
摘要:
使用root身份编辑云服务器的ssh登录方式。 su root vi /etc/ssh/sshd_config 修改如下配置项: 把PasswordAuthentication no 改为 PasswordAuthentication yes 或去掉Pas... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(30)
评论(0)
推荐(0)
摘要:
@Slf4jpublic class NIOServer { private InetAddress addr; private int port; private Selector selector; private static i... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(280)
评论(0)
推荐(0)
摘要:
public static void main(String[] args) { SpringApplication.run(dwdp.class, args); try { ServerSocket ... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(230)
评论(0)
推荐(0)
摘要:
1.实现ApplicationRunner 2.添加注解 @Order(value = 1) 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(19)
评论(0)
推荐(0)
摘要:
nginx实现资源压缩的原理是通过ngx_http_gzip_module模块拦截请求,并对需要做gzip的类型做gzip压缩,该模块是默认基础的,不需要重新编译,直接开启即可。 基本配置 # 开启gzipgzip on;# 启用gzip压缩的最小文件,小于设... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(52)
评论(0)
推荐(0)
摘要:
问题:一次开发中遇到一个springboot的异常:Failed to parse multipart servlet request; nested exception is java.io.IOException; 原因:为啥上传文件失败,从异常信息上看,... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(8633)
评论(1)
推荐(0)
浙公网安备 33010602011771号