In this video, I will show you how to add and edit Maven dependencies in a Spring Boot project using Edit Starters in pom.xml with IntelliJ IDEA Ultimate Edition.
We will start by creating a new Spring Boot project and then adding the Spring Data JPA and H2 Database dependencies using Edit Starters.
In this video, learn how to add and edit Maven dependencies in a Spring Boot project using Edit Starters in IntelliJ IDEA Ultimate Edition. We walk you through the following steps:
✅ Adding Spring Data JPA and H2 Database dependencies
✅ Creating a JPA Entity named 'Customer' for database persistence
✅ Setting up a Repository Interface (CustomerRepository)
✅ Building a Web Controller (DemoController)
✅ Configuring application.properties with H2 database and JPA details
✅ Adding a data.sql file with custom SQL insert scripts to initialize the database
✅ Allowing Hibernate to auto-create the schema with spring.jpa.hibernate.ddl-auto=update
✅ Ensuring data is loaded after schema creation using:
spring.sql.init.mode=always
spring.jpa.defer-datasource-initialization=true
spring.sql.init.data-locations=classpath:/db/data.sql
I hope this video helps you learn how to add and edit Maven dependencies in a Spring Boot project using Edit Starters in pom.xml with IntelliJ IDEA Ultimate Edition.