Web開發幾種經常使用工具

 

IDE篇

IDEA中自帶諸多插件,如圖:
IDEA中的插件html

Tips to use IDEA
  • You can quickly find all places where a particular class, method or variable is used in the whole project by positioning the caret at the symbol’s name or at its usage in code and pressingAlt+F7(Edit | Find | Find Usages in the popup menu).

構建工具篇

背景知識

什麼是項目構建

編程項目構建工具簡介前端

前端後端

我終於搞明白了前端構建工具,你也能夠的
npm是幹什麼的?
npm詳細介紹
利用nexus構建maven、docker、npm、gradle私服倉庫vue

工具比較

SVN和Maven的區別
Jekins—開源CI工具
「CI」爲何要持續集成
CI—百度百科
常見的8個持續集成工具
Jenkins+Maven+git配置
Jenkins + Git + Maven + tomcat集成環境搭建
淺談Maven git技術
maven和ant的比較
java中三大構建工具
Maven與Gradle對比
Maven與Gradle的比較使用java

  • Maven是管理項目結構,SVN是管理幾我的合做開發的代碼版本的
    maven,咱們每作一個項目,都要往lib目錄扔不少jar包,spring的啊hibernate的啊apache的啊等等,這樣就會致使不少包不知從哪一個角落下載回來的,名稱千奇百怪,版本也不明,項目多了之後還得本身複製來複制去,容易有多種不一樣版本的包混雜。maven最基本最重要的功能就是管理這些項目間的依賴關係,用一個xml來維護。若是你的工程要用spring,你就在maven的pom.xml裏配一下spring的項目名稱和版本號,要用其餘的也同樣。得益於maven已經成爲java世界的主流工具,絕大部分知名的項目都在maven中央倉庫有標準名稱,有各類不一樣的版本存在,你只要配下名稱,配下版本號,maven就會自動從網上爲你下載jar包並讓你的工程依賴上,你的本地硬盤的倉庫目錄能看到層次分明的你用過的全部第三方項目的jar包和源代碼,不再用去下載那些來路不明的jar包再扔到工程裏了,也不用擔憂寫同一個項目的兩我的一個用了3.0版的spring,一個用了2.5版的spring,以致搞出莫名其妙的問題。有了maven,咱們再也不須要往git或svn提交jar包,項目庫的體積大大減少,下載項目變得快多了。並且只要提交一個pom.xml文件和你的代碼,其餘人天然也能下載到和你本地如出一轍的第三方jar包,下過一次某個jar包之後,其餘項目再用同一個jar包時,maven天然會使用本地倉庫文件夾裏存在的jar包,不須要再次下載,也不會出現不少個拷貝。另外一個好處是maven的pom.xml任何一個主流ide工具都認識,均可以導入項目,你不用再操心你提交的.project和.settings文件由於別人的eclipse版本和你不一樣而導不進去,也不用再擔憂有人用的是別的ide認不得你的eclipse項目元文件,你不須要提交這些和開發工具備關的文件到服務器上了。
  • Java打包工具。若要組織依賴項首先你可使用maven,它遍歷依賴樹並下載全部適當的JAR。
  • 總的來講,gradle相比於maven有很打的靈活性,目前gradle的使用者愈來愈多。而因爲maven以前處於主流,而且在某些方面maven較gradle還有一些優勢,因此maven和gradle並存。在github上大多數優秀的開源項目會同時提供maven和gradle兩種添加依賴的方式。

總結:Marven很棒,但gradle作的更棒,那麼,學習gradle吧!精力有限,好鋼用在刀刃上!
Gradle快速入門python

  • 彩蛋:放鬆一下——編程奇才樓教主 1.樓教主母校對答 2.樓教主ACM心路歷程 樓教主三 樓教主四 五:小馬智行路測 覃超談樓天城
    Reporter: In addition to the programming contest, before you also participated in many math competitions. Some people think there is not much programming and mathematical relationships, how do you see?
    Tiancheng Lou: It may be the problems we encounter are not the same now. Problems I encountered more than focusing on the core part, tend to be more abstract, high efficiency requirements, to solve them, there must be a strong mathematical basis, from this requirement in terms of mathematics is still very high.——來源文章:什麼渣翻譯?
    數學很重要······

Maven的使用

有道雲筆記之Maven的使用
Eclipse配置maven環境
理解Maven中的SNAPSHOT版本和正式版本linux

idea更新maven依賴包
maven缺乏依賴包,強制更新命令github

P&S

The superclass 「javax.servlet.http.HttpServlet」 was not foundweb

WebContainer

Web容器、服務器、容器的理解總結
Web container:應該叫作web service container或者說是web application serverspring

Typically, a Web server refers to an execution infrastructure that handles HTTP requests and responses; a servlet container refers to a component that handles the lifecycle for servlets; an application server refers to a framework (servlet container, EJB container, JSP engine, MQ container, etc.) for handling Web applications. However, a Web container has a couple of meanings depending on the source. Most refer to a Web container as the part of an application server that manages servlets, JavaServer Pages (JSP) files, and other Web-tier components. Some refer to a Web container as the infrastructure for managing the lifecycle for Web services.

httpd - Apache Hypertext Transfer Protocol Server 百度百科

apachectl - Apache HTTP Server Control Interface

Tomcat的安裝和使用

Overview

Apache Tomcat, often referred to as Tomcat Server, is an open-source Java Servlet Container developed by the Apache Software Foundation (ASF). Tomcat implements several Java EE specifications including Java Servlet, JavaServer Pages (JSP), Java EL, and WebSocket, and provides a 「pure Java」 HTTP web server environment in which Java code can run.
Tomcat is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation, released under the Apache License 2.0 license, and is open-source software.

tomcat各版本下載
how to connect Tomcat to the popular open source web server, Apache HTTP Server.
Apache HTTP Server 與 Tomcat 的三種鏈接方式介紹
Java WEB實現URL重寫的優缺點及如何實現

一.linux下安裝使用

1.Linux中安裝tomcat

How to Install Apache Tomcat 8 on CentOS 7
CentOS6yum安裝tomcat7
tomcat目錄結構說明&tomcat目錄結構
本文操做環境說明:CentOS release 6.10 (Final) & openjdk version 「1.8.0_191」

1.1 wget下載並配置tomcat免安裝版到指定目錄

1ssh登錄linux
ssh -p sshportNum root@ServerIp而後輸入root用戶密碼便可登錄
2.查看linux版本號/升級系統並安裝jdk

3.Create a dedicated user for Apache Tomcat
groupadd tomcat
useradd -g tomcat -d /opt/tomcat -s /bin/nologin tomcat
4.Download and install the latest Apache Tomcat
wget APT atp-get

wget不是安裝方式 他是一種下載軟件相似與迅雷 若是要下載一個軟件 咱們能夠直接wget 下載地址。 ap-get是ubuntu下的一個軟件安裝方式,它是基於debain。 yum是redhat、centos下的一個軟件安裝方式,它是基於Linux的

1.2 yum安裝tomacat

yum install tomcat-webapps tomcat-admin-webapps—增長了ROOT、examples、sample、manager和host-manager Web應用到tomcat/webapps的目錄。詳見:詳解
yum安裝tamcat後,目錄時分散的

  • 查看tomcat版本信息:/usr/sbin/tomcat version
  • # cd /usr/share/tomcat—查看全部tomcat分散請求
  • rpm -ql tomcat | cat -n—查看tomcat所有安裝目錄

2.linux下Tomcat使用

啓動tomcat服務:service tomcat start
從新啓動:service tomcat restart

Tomcat更改默認端口

Linux查詢端口是否被佔用的四種方法
查詢端口占用
Linux下tomcat修改爲的80端口沒法訪問
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
service iptables save

域名解析到web服務器

linux查看ip:ifconfig
Shell 命令#curl ifconfig.me
查看域名解析是否生效
如何解決域名解析不生效問題?
移動互聯網時代,如何優化你的網絡 —— 域名解析篇
域名解析已經生效,沒法打開網站常規的緣由

IDE篇

IDEs Support (IntelliJ Platform)

option in the installer to download and install a JetBrains 64-bit JRE.

Myeclipse

Myeclipse中的快捷鍵

git基本命令
  • git配置
    Refs:1.初次運行git前的配置
    修改git默認http.postbuffer:git config --global http.postBuffer=524288000—改成500Mb

    git config --global user.name "userName"—設置github用戶名
    git config --golbal user.email "userEmail"—設置github註冊郵箱
    git config user.name—查看已設置的用戶名
    git config user.email—查看已設置的註冊郵箱

    • 將指定文件夾初始化爲git管理的文件夾
      git init—cd到要初始化的文件夾下使用git bash命令行工具初始化該文件夾
      touch 1.py —在當前目錄下建立文件名爲1,後綴爲py的文件
      git status—查看當前倉庫狀態
      git add fileName—add操做做用:untracked→staged
      git add .—add全部文件的修改
      git reset fileName—add的反操做:staged→untracked
      git reset --hard head
      git diff—查看unstaged和以前或者說上一個commit狀態的區別
      git diff --cached—查看staged狀態和上一個commit狀態的區別
      git diff head
      git log&git log --oneline

      git status深刻了解:如,git status -s
      git commit&git commit -m"message"&git commit --amend --no edit
      m表明commit信息

    git reset --hard head^^

    P&S

    warning: LF will be replaced by CRLF in Gemfile.

    Vim的使用

    VIM



    vim經常使用命令:
    set nu  NumG

相關文章
相關標籤/搜索