141 words
JPA Web App Tutorial - IntelliJ Project
To open and run the JPA Web Application tutorial project in IntelliJ IDEA:
-
Download and extract the project zip file:
JPA Web Application - Maven Project (6KB). -
Open the project in IntelliJ IDEA:
Select File > Open Project....
Select the guestbook-web directory and click OK.
-
Define the Server:
Select File > Settings > Application Servers.
Add Tomcat 6 Server if not set already (Tomcat has to be downloaded separately). -
Define Run Configuration:
Select Run > Edit Configurations, click the + icon and select Tomcat Server > Local.
Enter a name (e.g. Guestbook) at the top of the dialog box.
In the Deployment tab select + > Artifact... > Guestbook:war and click OK.
Click OK again to close the Configurations dialog box. -
Run the project in IntelliJ IDEA:
Select the new run configuration at the toolbar and click the green run icon (or Shift+F10).
If the browser fails to open check the settings at File > Settings > Web Browsers.