1.导入项目

![C6~AZ5902QE%WKUZXARX_W.png
选择项目路径
J)IT6I)ODK%XH%@%HKH~P5E.png
EI8JRLUOV``L3E$B{%{W1NY.png
A{XGBMG0YTN9`E8`)1{%0YA.png
G69H%72G`15I4K2KBO)LAYO.png

直接操作next,yes,就可以将项目导入

2.配置编译,jar包

4{C1%2[GH$0)2(OYGH{(%]T.png
配置jdk
BSUJBY](B1~3`DQ5MCJOM}T.png
配置Java编译后的路径:D:\work-git\mh\hd-cms\WebRoot\WEB-INF\classes
E055GS47D%84_3FU4D`HVGN.png
将jar包从lib文件夹下面导入,全选中,点击ok按钮
A2
BIUEW1R@{~6UCH}4FI5N9K1.png
配置WebRoot
ZC7BJ@SE06J%JAY($E78MB4.png
W6YO[Z4391%SCU4T9L6XWVN.png](https://cdn.nlark.com/yuque/0/2020/png/1585928/1596102067584-8c8fc5a2-6ffa-43e6-8c52-54525912428b.png#align=left&display=inline&height=995&margin=%5Bobject%20Object%5D&name=W6YO%5BZ4391%25SCU4T9L6XWVN.png&originHeight=995&originWidth=1752&size=105774&status=done&style=none&width=1752)<br />项目的WebRoot配置:D:\work-git\mh\hd-cms\WebRoot<br />![42UYNQ~UQ`26QBI(KLJY~HV.png](https://cdn.nlark.com/yuque/0/2020/png/1585928/1596102147250-8f68d046-733a-4781-8f87-95a48cd5f379.png#align=left&display=inline&height=976&margin=%5Bobject%20Object%5D&name=42UYNQ~UQ%6026QBI%28KLJY~HV.png&originHeight=976&originWidth=1752&size=109839&status=done&style=none&width=1752)<br />配置servlet以及jsp的jar包<br />![[RO3H})91RV4LBQZYV7EOYA.png](https://cdn.nlark.com/yuque/0/2020/png/1585928/1596102294725-ffc3c3d4-cd80-4be9-85ef-473bd94b772c.png#align=left&display=inline&height=649&margin=%5Bobject%20Object%5D&name=%5BRO3H%7D%2991RV4LBQZYV7EOYA.png&originHeight=649&originWidth=1617&size=53629&status=done&style=none&width=1617)<br />![TC{O1G{}(B]]CTUI8SCZKDW.png
找到两个jar包,jsp-api.jar,servlet-api.jar
P7X@H[HO$LNZ$58TG)@X%W4.png](https://cdn.nlark.com/yuque/0/2020/png/1585928/1596102424618-03a1155d-bd22-4d17-b318-cbb758fba026.png#align=left&display=inline&height=857&margin=%5Bobject%20Object%5D&name=P7X%40H%5BHO%24LNZ%2458TG%29%40X%25W4.png&originHeight=857&originWidth=1648&size=93576&status=done&style=none&width=1648)最后点击ok按钮之后的状态<br />![ULZIF~M3KRJYY_@2G$UWWNV.png](https://cdn.nlark.com/yuque/0/2020/png/1585928/1596102514723-75f370f0-882e-4c31-a02b-52b9b23030d2.png#align=left&display=inline&height=681&margin=%5Bobject%20Object%5D&name=ULZIF~M3KRJYY_%402G%24UWWNV.png&originHeight=681&originWidth=1766&size=58940&status=done&style=none&width=1766)<br />前面已经配置了WebRoot,点击Facets就可以看到对应的配置<br />![LXJFX%AWNQ9X`EL1W8DWZOM.png](https://cdn.nlark.com/yuque/0/2020/png/1585928/1596102602620-a067968d-85e0-47a0-ac23-72ead6a101b5.png#align=left&display=inline&height=843&margin=%5Bobject%20Object%5D&name=LXJFX%25AWNQ9X%60EL1W8DWZOM.png&originHeight=843&originWidth=1706&size=85761&status=done&style=none&width=1706)<br />最后配置以什么形式启动<br />![0SI3P781Z)V6DLEZ$DFL{HA.png](https://cdn.nlark.com/yuque/0/2020/png/1585928/1596102683814-58bdea6e-2f48-4071-9866-b4486c0053b1.png#align=left&display=inline&height=885&margin=%5Bobject%20Object%5D&name=0SI3P781Z%29V6DLEZ%24DFL%7BHA.png&originHeight=885&originWidth=1521&size=90884&status=done&style=none&width=1521)<br />![4US{VM`L6C}DVDIV9`~5]40.png
最后状态
![@TTUTGXPH7Z_~OU7NBRXFA.png

3.配置tomcat

  1. 点击Edit Configuration<br />![92KI~`_CIOZGQTH)99TW]1F.png](https://cdn.nlark.com/yuque/0/2020/png/1585928/1596103133457-ca801e6c-1cc7-4e81-8a6e-146ee0409997.png#align=left&display=inline&height=551&margin=%5Bobject%20Object%5D&name=92KI~%60_CIOZGQTH%2999TW%5D1F.png&originHeight=551&originWidth=1311&size=118467&status=done&style=none&width=1311)<br />![[`DNG3TAB@2]$B4J8$`F2T5.png](https://cdn.nlark.com/yuque/0/2020/png/1585928/1596103207412-635a3d76-1f7f-4d54-9b88-2cb3464da5e6.png#align=left&display=inline&height=968&margin=%5Bobject%20Object%5D&name=%5B%60DNG3TAB%402%5D%24B4J8%24%60F2T5.png&originHeight=968&originWidth=1261&size=101686&status=done&style=none&width=1261)<br />![YAK8E~YS13K283$386UE8WJ.png](https://cdn.nlark.com/yuque/0/2020/png/1585928/1596103298558-229983d0-c926-4240-bc68-4edd94971c7a.png#align=left&display=inline&height=1027&margin=%5Bobject%20Object%5D&name=YAK8E~YS13K283%24386UE8WJ.png&originHeight=1027&originWidth=1720&size=133349&status=done&style=none&width=1720)<br />![~OD{R4RH%BQ{6F0](DBUWZ8.png](https://cdn.nlark.com/yuque/0/2020/png/1585928/1596103340550-70ba2c42-977d-4adc-9cbf-7b4498c70dd9.png#align=left&display=inline&height=947&margin=%5Bobject%20Object%5D&name=~OD%7BR4RH%25BQ%7B6F0%5D%28DBUWZ8.png&originHeight=947&originWidth=1591&size=59562&status=done&style=none&width=1591)<br />![G@}W9J808CSQ2MIXKKWQ%~R.png](https://cdn.nlark.com/yuque/0/2020/png/1585928/1596103398831-a4b0008d-579f-49be-981f-d6dfdc24b5e7.png#align=left&display=inline&height=984&margin=%5Bobject%20Object%5D&name=G%40%7DW9J808CSQ2MIXKKWQ%25~R.png&originHeight=984&originWidth=1606&size=93972&status=done&style=none&width=1606)<br />最后点击ok<br />启动项目,debug模式启动<br />![EW]XICW9_)S9@KCXMA803I1.png](https://cdn.nlark.com/yuque/0/2020/png/1585928/1596103469385-5ed0447e-b6c6-441b-a8cd-3c533c6368ce.png#align=left&display=inline&height=975&margin=%5Bobject%20Object%5D&name=EW%5DXICW9_%29S9%40KCXMA803I1.png&originHeight=975&originWidth=1758&size=186837&status=done&style=none&width=1758)