Udemy course link
In section 28, we start to build a real database web app. Here we use intellij with maven to set it up.
- Download maven config, link
- Unzip and use intellij to open the inner folder, import as Maven project.
- Suppose you set up the database correctly, update code in TestDbServlet.java if you use version 8+:
String jdbcUrl = "jdbc:mysql://localhost:3306/web_customer_tracker?useSSL=false&serverTimezone=UTC";
String driver = "com.mysql.cj.jdbc.Driver";
Project settings as below:
Add your tomcat config and run it.