摘要: 将博客搬至CSDN啦!csdn博文地址: https://blog.csdn.net/weixin_42592282/article/details/118990098 阅读全文
posted @ 2021-07-21 14:37 Allen-LuoYi 阅读(16) 评论(0) 推荐(0)
摘要: 一.如果项目中用的 RestTemplate 来调用服务提供的接口,可以利用 RestTemplate 的拦截器来传递 Token,代码如下所示。 @Component public class TokenInterceptor implements ClientHttpRequestInterce 阅读全文
posted @ 2021-07-02 15:55 Allen-LuoYi 阅读(284) 评论(0) 推荐(0)
摘要: 一.多节点启动 节点1:1.117.173.54:8080 节点2:1.117.173.54:8088 二.配置nginx集群访问 在server结点上方添加 upstream lbs { server 1.117.173.54:8080; server 1.117.173.54:8088; 在se 阅读全文
posted @ 2021-07-01 11:20 Allen-LuoYi 阅读(215) 评论(0) 推荐(0)
摘要: 一.前端配置Nginx 在server结点下添加 location / { root /usr/local/software/front/dist; index index.html index.htm; } 二.重启nginx ./nginx -s reload 阅读全文
posted @ 2021-07-01 11:08 Allen-LuoYi 阅读(169) 评论(0) 推荐(0)
摘要: 一.后端接口地址 api.datadogapache.cn 腾讯云机器:1.117.173.54 二.前端接口地址 web.datadogapache.cn 腾讯云机器:1.117.173.54 三.前端部署nginx上 后端部署多个节点,同过nginx反向代理做集群 四.spring boot后端 阅读全文
posted @ 2021-07-01 11:00 Allen-LuoYi 阅读(185) 评论(0) 推荐(0)
摘要: 注意:Mysql和系统务必保持⼀致,不然存在不⼀致, 开启mysql远程连接(如果是准线上,建议不要开启远程连接) 开放腾讯云网络安全组配置 3306 端口 导入测试数据到Mysql 1.下载mysql的Yum仓库 wget http://repo.mysql.com/mysql-community 阅读全文
posted @ 2021-07-01 10:28 Allen-LuoYi 阅读(62) 评论(0) 推荐(0)
摘要: 一.什么是nginx服务器和快速安装? 1.什么是Nginx服务器 一个高性能的HTTP和反向代理web服务器 2.安装依赖及库文件 yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel 3.安装PCRE: 阅读全文
posted @ 2021-06-30 17:35 Allen-LuoYi 阅读(86) 评论(0) 推荐(0)
摘要: 一.上传JDK1.8到centOS6服务器 JDK1.8获取地址 https://pan.baidu.com/s/1_mK13VFk-38VK-AT_wCzzg 提取码:c2j7 步骤:1.通过远程工具fileZilla将对应的包上传至相应的目录,可进入centOS服务器查看导入的jdk包 2. 解 阅读全文
posted @ 2021-06-30 17:14 Allen-LuoYi 阅读(102) 评论(0) 推荐(0)
摘要: 一.什么是定时任务,使用场景? 某个时间定时处理某个任务 发邮件、短信等 消息提醒 订单通知 统计报表 ...... 二.常见定时任务 Java⾃带的java.util.Timer类配置比较麻烦,时间延后问题 Quartz框架: 配置更简单,xml或者注解适合分布式或者大型调度作业 SpringBo 阅读全文
posted @ 2021-06-30 16:26 Allen-LuoYi 阅读(69) 评论(0) 推荐(0)
摘要: 简介:介绍常用的SpringBoot2.x模板引擎和官方推荐案例 1.SpringBoot2.X常⽤start介绍 starter主要是简化依赖用的 spring-boot-starter-web->⾥⾯包含多种依赖 查看 pom⽂件 spring-boot-starter-parent-> spr 阅读全文
posted @ 2021-06-30 16:04 Allen-LuoYi 阅读(91) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示