ObjectDB ObjectDB

Spring MVC JPA Tutorial - IntelliJ Project

To open and run the Spring MVC JPA tutorial project in

  • Open the project in IntelliJ IDEA:
    Select File > Open Project....
    Select the guestbook-spring 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.