A small and unassuming CRUD application (aka bookstore)
The username & password to access db are 'root' (in both cases)
and can be changed by editing
src/main/resources/db.properties
To populate the database you may want to run the script:
script.sql
To run the application you can follow these steps,
assuming that you are in the application directory
(the paths should be adjusted to correspond your system):
- mvn clean install
- sudo rm -rf /opt/apache-tomcat-8.5.23/webapps/hibernet-mvc-1.0-SNAPSHOT
- sudo rm -rf /opt/apache-tomcat-8.5.23/webapps/hibernet-mvc-1.0-SNAPSHOT.war
- sudo cp ./target/hibernet-mvc-1.0-SNAPSHOT.war /opt/apache-tomcat-8.5.23/webapps/
- sudo /opt/apache-tomcat-8.5.23/bin/startup.sh
- In your browser use the path: http://localhost:8080/hibernet-mvc-1.0-SNAPSHOT/
To shutdown Tomcat you may use:
sudo /opt/apache-tomcat-8.5.23/bin/shutdown.sh
(the actual path depends on your system)