idea下java的编译

编译过程
1. 导入工程,右下角弹出“Frameworks Detected”,点击“configure”,弹出框,默认选中“web.xml”,点击“OK”;

2. 在project目录下,把"conf"设为“Resources Root”;
把“WebContent”设为“Excluded”
将libs设为“UNmark as Sources Root”;

3. 工具栏单击“Configure project structure”,
弹出框,选择“libraries”,将项目加入到选项表;
将“libs”目录也加到目录列表;
选择“Artifacts”,选择添加“Web Application:Archive”,命名后,点击“Apply”;

4. 工具栏单击“Run/Debug Configurations”,配置tomcat目录。
配置本地tomcat的路径;

然后在“Deployment”选项页下,添加需要部署的项目;

5. run即可.

原文地址:https://www.cnblogs.com/ottll/p/10619778.html