Skip to content

A Spring JDBC project demonstrating CRUD operations, DAO layer implementation, and integration with MySQL using JdbcTemplate.

Notifications You must be signed in to change notification settings

VaradM-17/Spring_JDBC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Spring JDBC

A Spring JDBC project demonstrating CRUD operations, DAO layer implementation, and integration with MySQL using JdbcTemplate.


πŸš€ Features

  • CRUD operations (Create, Read, Update, Delete)
  • DAO layer with JdbcTemplate
  • Entity mapping using BeanPropertyRowMapper
  • Integration with MySQL
  • Modular and maintainable code structure

πŸ› οΈ Tech Stack

  • Java
  • Spring JDBC
  • MySQL Database
  • Maven

πŸ“‚ Project Structure

src/main/java
 └── com.jdbc.springjdbc
      β”œβ”€β”€ entity       # Entity classes
      β”œβ”€β”€ dao          # DAO Interfaces
      β”œβ”€β”€ dao.impl     # DAO Implementations
      β”œβ”€β”€ controller   # Controller classes
      └── SpringJdbcApplication.java  # Main entry point

βš™οΈ Setup & Run

  1. Clone the repository:

    git clone https://github.com/VaradM-17/Spring_JDBC.git
    cd Spring_JDBC
  2. Configure your MySQL database in application.properties:

    spring.datasource.url=jdbc:mysql://localhost:3306/your_db_name
    spring.datasource.username=your_username
    spring.datasource.password=your_password
    spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
  3. Build and run the project:

    mvn spring-boot:run

πŸ“Œ Example Queries

  • Insert Employee
  • Fetch Employee by ID
  • Update Employee
  • Delete Employee

About

A Spring JDBC project demonstrating CRUD operations, DAO layer implementation, and integration with MySQL using JdbcTemplate.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages