🚀 Basic user registration and login system, user and products management web application using JSP, Servlet, Maven and Hibernate. This web application manages a colletion of users and products with the basic feature: list, insert, update and delete (CRUD operations - Create, Update, Read and Delete).
and more...
- Customer registration
- Product registration
- User login
- Session treatment
- Shopping cart
- User profile and settings
Needs to be installed in your PC: Git, Node.js, Java JDK 11+. IDE to work with the code like Eclipse, IntelliJ, both with application server installed, Apache Tomcat 9 or other. MySQL Workbench or similar to manage database (important! case switch the tool to manage, it's necessary change the JDBC Driver).
# Clone repository or Download ZIP
$ git clone <https://github.com/rubensdimasjr/jsp-maven-hibernate-crud>
- File > Run SQL script > script.sql
-
Open Eclipse IDE -> File > Import
-
Seach for Maven -> Select "Existing Maven Projects" -> Next > Root Directory, Browse...
- Select repository until find > pom.xml > Open Folder
- Finish.
- Open src/main/java > package dao > Provedor.java
# Change for your connection credential
String username = "root";
String pwd = " ";
- Open src/main/java > hibernate.cfg.xml
# Change property hibernate connection
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password"> </property>
- MySQL Workbench connection must not be closed while the application server(Apache TomCat or other) is running.
- MySQL Workbench(or other) version must be the same as the JDBC Driver(located pom.xml, Maven dependencies and hibernate.cfg.xml).
- Links that can help: (https://github.com/mysql/mysql-connector-j) (https://github.com/apache/tomcat)
Feito por Rubens Matias 🚀 Entre em contato!