logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

阿里云服务器linux安装nginx

下载相关组件wget http://nginx.org/download/nginx-1.10.2.tar.gzwget http://www.openssl.org/source/openssl-fips-2.0.10.tar.gzwget http://zlib.net/zlib-1.2.11.tar.gzwget ftp://ftp.csx.cam.ac.uk/pub/software/pr

文章图片
#nginx#linux#服务器
idea 添加注释模板并在新建类时自定义描述信息

类模板setting-》File and Code Templates-》class/** TODO* @version 1.0* @author ${USER}* @date ${DATE} ${TIME}**/方法模板setting-》Editor-》Live Templates模板** 功能描述: <br>* 〈$END$〉* @Param: $param$* @Return:

html2canvas 将 Dom组件 截图 然后 保存(react - vue版本)

官网http://html2canvas.hertzen.com/安装Install NPMnpm install --save html2canvasInstall Yarnyarn add html2canvas引入importhtml2canvasfrom'html2canvas'页面在需要打印的地方 加上id<Cardid="views...

idea 各个版本下载

https://www.jetbrains.com/zh-cn/idea/download/other.html

spring boot + WebSocket + react 配置 WebSocket 统计在线人数 指定用户发送消息

目录pom依赖主要的配置类WebSocketConfig配置 WebSocketServer调用 - WebSocketControllerreact 配置WebSocketUtils工具类用途: 服务端主动向客户端推送数据。pom依赖<!-- websocket --><dependency>...

#websocket
react 生命周期函数

目录componentWillMountcomponentDidMountcomponentWillReceivePropsshouldComponentUpdatecomponentWillUpdatecomponentDidUpdatecomponentWillUnmountcomponentWillMount在渲染前调用,在客户端也在服务端。...

根据nginx日志,设置防火墙。防止恶意攻击。ipset

有人恶意攻击我们服务器,可以根据nginx打印出来的访问日志ip,筛选出来访问量过大的ip,给他设置黑名单,设置防火墙,配置ipset,写一个脚本。

#linux#服务器
nginx 转发

比如我们开发中,使用的是本地资源和测试服务器的一些资源。这就导致了一些资源的不一致。比如我项目中上传图片和读取图片。在本地起项目的时候,就读取不到测试机上的图片资源,这时候就可以转发,当我请求资源的时候。转发到测试机。也可以给个别名方式。比如http://localhost:9091/staticFileServer/img/alarm_icon/baojingzhu.png请求这个地址(http

spring boot 将session 保存到 redis 中

<dependency><groupId>org.springframework.session</groupId><artifactId>spring-session-data-redis</artifactId><version>1.3.0.RELEASE</version></dependency&gt

#java#spring boot#redis
从数据库或前端获取时间格式化两种注解方式 @JsonFormat与@DateTimeFormat

解决什么问题?1 、数据库获取时间传到前端进行展示的时候,在数据库中显示的是正确的时间格式,获取出来成了的时间戳,@JsonFormat注解很好的解决了这个问题2、另一个问题是,我们在使用WEB服务的时,可能会需要用到,传入时间给后台,比如注册新用户需要填入出生日期等,这个时候前台传递给后台的时间格式同样是不一致的,而我们的与之对应的便有了另一个注解,@DataTimeFormat便很好的解决了这

    共 27 条
  • 1
  • 2
  • 3
  • 请选择