1. Select File->New->Project...
2. Enter the project name and create a java project
3. Right-click the project and select Add Frameworks Support
4. Select Web Application (4.0)
5. After completion, the project structure becomes like this
6. Create classes and lib folders under WEB-INF
7. Select File->Project Structure... to edit the project structure
8. Change the path of the Output path to the path of the classes folder
9. Add the lib folder to Dependencies to resolve project dependencies (you can put the jra package required by the project under the lib folder path, for example: fastjson-1.1.34.jar)
10. Add web container
11. Configure the web container
12. Run the project