1 在Cent OS安装docker 1) 先有一个Cent OS 7.6系统 这个很重要,不同版本按照的时候是不一样的。 查看CentOS版本 cat /etc/redhat-release 2) 用root账户登录进去 3) 配置国内yum源 wget -O /etc/yum.repos.d ...
windows安装docker后报警告:WSL 2 installation is incomplete. WSL 2 installation is incomplete. The WSL 2 Linux kernel is now installed using a separate MSI update package.Please click the link and fol ...
定义一个configuation,并将优先级调为最高。 package wang.aweb.childcar.config; import org.springframework.web.filter.CorsFilter; import org.springframework.boot.web.servlet.FilterRegistrationBean; impor ...
本文实现了对指定url批量校验token,采用JWT方式,登录成功将jwttoken传入到前端,前端保存jwttoken到缓存中,请求其他接口时,将jwttoken通过header携带,服务端通过header中的token校验前端的用户身份以及请求的合 ...
为了开发模式下调试接口的便捷性,开发了请求和返回信息打印类,信息会通过log.info方式打印在控制台,首先,需要引入springboot对于AOP的依赖和日志组件log4j2接替springboot默认的log组件。 <dependency> ...
为了开发模式下调试接口的便捷性,开发了请求和返回信息打印类,信息会通过log.info方式打印在控制台,首先,需要引入springboot对于AOP的依赖和日志组件log4j2接替springboot默认的log组件。 <dependency> ...
springboot自动引入spring-context,所以不用添加任何依赖就可以直接使用spring-task。 具体实现类如下: import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.context.annotatio ...
1、引入dependencie <dependency> <groupId>io.netty</groupId> <artifactId>netty-all</artifactId> </depndency> 2、定义websocket服务类 WebSocketServer import io ...
//初始化用户 git --global user.name "wangqiang" git --global user.email "1194323013@qq.com" //初始化项目 git init //添加被管理的文件 git add //提交至本地仓库 git commit //查看状态 ...
公司业务需要,现需要在Gitee上管理公司业务源码,员工连接Gitee并pull本地源码至Gitee,服务器上可以实时更新程序。 (只限于服务器端)操作步骤: 1、服务器安装git,centOS命令: yum install git 2、配置Gitee账 ...
开始学习ElementUI, 步骤: 1、安装nodejs 2、配置nodejs, npm config set prefix "E:\nodejs\node_global" npm config set cache "E:\nodejs\node_cache" 3、更换镜像源 npm config set registry=http://registry ...
因为项目需求,需要对接腾讯IM,项目现在用的框架是thinkphp6.0.7,因为腾讯Im的官方文档并不清晰,处理过程整理如下