app項目基本功能完成;想着寫寫別的,就開始下載idea,安裝後,想辦法激活,網上有三種,我用了一種,接下來操作
參考了https://blog.csdn.net/qq_27093465/article/details/63683873部分內容,但是有點不一樣,可能版本的問題。
新建一個maven項目,右邊選擇第二個webapp;
這倆輸入框內容是隨便輸入的;
這個和參考文章裏一樣,提前新建一個文件夾,然後在裏面新建一個空的文件夾和一個xml文件;
我選擇是的D盤,位置隨意;
import下;
出現artifact了;
,期間遇到一個問題404 The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
原來發現只要有一個web.xml就得有一個對應的index.jsp;
改了之後不報錯了。