Spring MVC JPA Tutorial - NetBeans Project
To open and run the Spring MVC JPA tutorial project in NetBeans:
- Download and extract the project zip file:
- Open the Maven project in NetBeans:
Select File > Open Project....
Select the guestbook-spring directory and click Open Project. - Run the project:
Select Run > Run Main Project... (or F6).
Choose or define Tomcat as a server and click OK.
Note: To run the application on GlassFish - change the transaction type fromRESOURCE_LOCAL
toJTA
in thepersistence.xml
file. - If a browser is not opened - open it at http://localhost:8080/Guestbook/.