Toggle navigation
芳華Youthred
Home
About
Archive
芳華Youthred
Just writing
Linux查看端口监听占用
1 2 3 4 5 6 7 8 9 10 11 # 查看所有 netstat -ntlp # 过滤PORT8080 netstat -ntlp | grep 8080 -t # 仅显示tcp相关选项 -u # 仅显示udp相关选项 -n # 拒绝显示别名,能显示数字的全部转化为数字 -l # 仅列出在Listen(监听)的服务状态 -p # 显示建立相关链接的程序名
Posted by youthred on April 15, 2021
SpringBoot下的异步线程池
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 package net.add1s.config.thread; import org.springframe...
Posted by youthred on April 15, 2021
vue+bootstrap4+mybatis分页
Springboot+Mybatis+Pagehelper分页具体实现略。 Controller返回数据 1 2 3 4 5 @GetMapping("/findByPage") public AjaxResult findByPage(@RequestParam("pageIndex") Integer pageIndex, @RequestParam("pageSize"...
Posted by youthred on April 15, 2021
Elasticsearch7.6.x允许head-master跨域访问
修改config/elasticsearch.yml文件 1 2 3 4 # 开启跨域 http.cors.enabled: true # 允许所有 http.cors.allow-origin: "*"
Posted by youthred on April 15, 2021
Oracle使用SQL语句添加序列
1 2 3 4 5 6 CREATE SEQUENCE SEQ_XXX MINVALUE 1 NOMAXVALUE INCREMENT BY 1 START WITH 1 CACHE 5;
Posted by youthred on April 15, 2021
利用vue的监听和动态class绑定
这里模拟检测输入的字符串是否为“admin” html 1 2 3 4 5 6 <div id="loginFrom" class="form-group has-feedback" :class="checkStatus.hasClass"> <div> <input name="username" type="text" cl...
Posted by youthred on April 15, 2021
HttpServletRequest获取访问者真实IP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 package net.add1s.util; import javax.servlet.http.HttpServletRequest; imp...
Posted by youthred on April 15, 2021
vue+js实时监听屏幕高度实现目标DIV垂直居中
html 前端样式使用的BootstrapV3,最开始在获取#main的高度的时候用$('#main').height()得到的结果一直为0,网上浏览后找到了解决方案:给目标DIV加上overflow: hidden的样式,我不是专门搞前端的,不去想为什么了 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 <div id="main" style="ov...
Posted by youthred on April 15, 2021
Centos7卸载OpenJdk,安装OracleJdk
查看JDK版本 1 java -version 查找openjdk安装包 1 rpm -qa | grep openjdk 卸载openjdk 1 yum -y remove java*openjdk* 获取oraclejdk oraclejdk11.0.9.rpm 提取码:0000 上传到服务器,若无rz/sz命令请先执行yum install -y lrzsz ...
Posted by youthred on April 15, 2021
Springboot统一异常处理
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler...
Posted by youthred on April 15, 2021
← Newer Posts
Older Posts →
FEATURED TAGS
demo
Java
SpringBoot
MySQL
Springboot
CentOS
VUE
Elasticsearch
Git
IDEA
Apache
Github
JAR
JDK
JSch
LAMP
Linux
Logback
MybatisPlus
Nacos
OAuth2
OpenFeign
Oracle
SSH
Shell
SpringCloud
SpringCloudGateway
WebFlux
ABOUT ME
Just me
FRIENDS
SnowingFox