原创 每天一命令(7)mv(move (rename) files)

mv - move (rename) files man mv 查看文檔 常用命令 mv -ifu 源文件/源碼目錄 目標文件/目標目錄 -i 如果文件存在,提示是否覆蓋 -f 強制覆蓋 -u 如果目標

原创 spring4 + mybatis3 + spring mvc + veloctiy + maven 整合

1,準備工作 spring4 jar 鏈接 https://spring.io/官網 http://maven.springframework.org/release 下載地址 mybatis3 鏈接 https://gith

原创 依賴倒置原則(Dependence Inversion Principle)

1,高層模塊不應該依賴底層模塊 2,依賴於抽象,依賴於接口。不要依賴實現細節。 3,細節依賴抽象。 案例: 模仿用戶通過鑰匙開門,門的鎖是電子鎖 public class ElectronicLock { priv

原创 spring-boot 2.0.4 整合jsp,通過pom.xml打包類型jar和war方式

spring boot jsp 404 的解決方案 1,pom.xml 通過packaging 爲jar方式 maven spring-boot 版本 <parent> <groupId>org.springfr

原创 每日一命令(14)find (search for files in a directory hierarchy)

find search for files in a directory hierarchy man find 查看命令使用說明 選項說明 OPTIONS All options always return true.

原创 每天一個命令(20) cut (remove sections from each line of files)

cut remove sections from each line of files man cut 參數說明 cut -bcdf file -b 字節 -c 字符 -d 分割符默認是空格 -f 取對

原创 每日一命令(10)cat (concatenate files and print on the standard output)

cat concatenate files and print on the standard output 拼接文件和輸出文件 man cat 查看命令文檔 cat 查看文件 cat > file 創建文件,但是不能編輯已經存在的

原创 android studio ndk 開發以及問題

1,環境準備下載的ndk 2,android studio 配置ndk 第一種方式配置 local.properties sdk.dir=D\:\\installtool\\sdk\\sdk ndk.dir=D\:\\tools\\and

原创 每天一個命令(17)vmstat - Report virtual memory statistics

vmstat - Report virtual memory statistics 虛擬內存統計報告 man vmstat 查看命令文檔 使用情況 vmstat [-a] [-n] [-t] [-S unit] [delay [ co

原创 android.support.v7.app.AlertDialog 使用報錯

修改方式 1,下面報錯因爲主題設置不對 <style name="AppTheme" parent="@android:style/Theme.Light"> <item name="windowActionBar"

原创 每天一個命令(19) uname - print system information

uname - print system information man uname 查看文檔 uname -asnrvmpio 參數說明 -a, --all 打印所有信息 print al

原创 idea mac debug 卡頓0-30秒問題

1,解決方案修改sudo vi /etc/hosts 127.0.0.1 localhost <你的hostname>.local 127.0.0.1 localhost localhost.localdomai

原创 nginx root alias 區別

訪問的目錄結構 root@nginx02 ~ # tree /application/image/ /application/image/ |-- 01.jpg |-- images | |-- 01.jpg | |-- i1

原创 每天一命令(16)top - display Linux tasks

top - display Linux tasks man top 查看命令文檔 1、統計信息區 第一行:隊列信息,同uptime命令的執行結果 19:53:24 當前系統日期 up 15:54 系統運行時間,格式爲時:分 5

原创 gulp yargs | uglify | less | livereload | sourcemaps | rename |clean-css 綜合應用

1、yargs 通過命令行傳入參數 2、uglify 壓縮js 3、less less 編譯 4、livereload 自動刷新瀏覽器(前提是chrome要安裝這個插件) 5、rename 重命名 6、clean-cs