原创 css使用記錄

1 設置鼠標懸停文字 <a title='標懸停文字'> 2 設置鼠標的圖標 a { cursor: not-allowed;     } 3 設置滾動條 overflow: auto; 在需要時內容會自動添加滾動條  overflow:

原创 react禁用瀏覽器的回退功能

componentDidMount() { window.addEventListener('popstate', function () { history.pushState(null

原创 JAVA運行環境部署(linux)

1 JAVA環境的安裝   a 解壓 tar -zxvf jdk-8u121-linux-x64.tar.gz b 複製文件到java 目錄下 cp -r jdk1.8.0_121/   /usr/local/java   c 配置環境變

原创 react+ antd+ echarts 表格顯示

  /** * @file modules/dashboard/Index * @author sun */ import _ from 'lodash'; import moment from 'moment'; import

原创 mysql的使用

1 授權  登陸root賬戶,賦予tester全部權限 GRANT ALL ON  *.* TO 'tester'@'localhost'; 驗證剛纔賦予的權限 SHOW GRANTS FOR 'tester'@'localhost';

原创 react 學習

/** * @author shj * @file react index */ import React from 'react'; import ReactDOM from 'react-dom'; // hello worl

原创 使用junit報錯

java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing 是從生產環境直接下載的 junit-4.12.jar,在運行時報錯 原因: 4.11以上版本不在包含hamcrest。

原创 cron(定時任務使用)

Cron表達式是一個字符串,字符串以5或6個空格隔開,分爲6或7個域,每一個域代表一個含義,Cron有如下兩種語法格式: Seconds Minutes Hours DayofMonth Month DayofWeek Year或 Sec

原创 GIt使用

1 將本地的項目進行上傳 git  add . (點表示目錄下的所有文件到緩存) git add xx.txt(將某個文件緩存) 查看緩存中的文件 git status 提交  git commit  -m " 一般輸入更新的消息"

原创 git生成公鑰私鑰(windows)

  配置用戶名和郵箱 git config --global user.name "v_sunhaojie" $ git config --global user.email "[email protected]"   會在當前用

原创 gradle使用 (0 helloworld 程序)

1 下載gradle  http://services.gradle.org/distributions/ 下載需要的版本 ,我這裏下載的是  gradle-5.4.1-all.zip, 解壓 配置環境變量 ,變量值爲解壓的路徑 pat

原创 使用idea, 搭建Gradle+springboot+thymeleaf 項目

  使用IDEA 2019       gradle的相關配置可以參考 創建完成之後,目錄結構如下   查看 build.gradle plugins { id 'org.springframework.boot' v

原创 面試整理

1  多線程  線程與進程的區別 進程:是併發執行的程序在執行過程中分配和管理資源的基本單位,是一個動態概念,競爭計算機系統資源的基本單位。 線程:是進程的一個執行單元,是進程內科調度實體。比進程更小的獨立運行的基本單位。線程也被稱爲輕量

原创 (eclipse) springboot-1 hello world

hello world         創建一個helloworld @Controller public class HelloWorld {     @RequestMapping("/hello")   

原创 linux虛擬機的安裝及運行

準備工作 1 vm虛擬機 2 CentOS-7.0-1406-x86_64-DVD.iso   1 安裝vm虛擬機  2 安裝linux         啓動虛擬機    等待虛擬機安裝  進行一些簡單的設置 設置爲簡