Spring & Hibernate project on udemy: intellij setting up

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.

  1. Download maven config, link
  2. Unzip and use intellij to open the inner folder, import as Maven project.
  3. 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";
  1. Project settings as below:

  2. Add your tomcat config and run it.