$$ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Self-defined math definitions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Math symbol commands \newcommand{\intd}{\,{\rm d}} % Symbol 'd' used in integration, such as 'dx' \newcommand{\diff}{{\rm d}} % Symbol 'd' used in differentiation ... $$

Idea Maven创建Web项目

1.创建Maven项目

1.1File->New->Project

1.2填写GroupId和ArtifactId

1.3直接Finish,然后等一会,等Maven加载完

完成以后的项目结构

 

2.配置Project Structure

2.1点击如图所示按钮

2.2Project项按照默认配置

 

2.3Modules把刚刚创建的项目变成Web项目

2.4更改Web Resource Directory和web.xml的位置(点击旁边的铅笔)

Web Resource Directory路径为src\main\webapp

web.xml的位置为src\main\webapp\WEB-INF\web.xml

2.5添加Dependencies

 

选择Library,添加Tomcat

2.6Artifacts,Web Application;Exploded->From Modules

创建完成后的目录结构

 

3.配置Tomcat服务

3.1点击Edit Configurations

3.2添加Deployment

3.3配置Server

3.4在webapp下创建index.jsp

3.5运行Tomcat

 

3.6输出

 

 

posted @ 2018-01-21 19:13  V丶vvv  阅读(210)  评论(0编辑  收藏  举报