java core

Your blog category

Database Connectivity and SQL Operations

Spring Boot connects to a relational database by reading spring.datasource.* settings and building a DataSource, which is a pool of ready connections (HikariCP by default). JdbcTemplate sits on top of that DataSource and runs plain SQL for you, handling connections, statements, result sets, and cleanup. The four basic operations are INSERT (create), SELECT (read), UPDATE […]

Database Connectivity and SQL Operations Read More »

Application Monitoring

DatabaseMetaData is a JDBC interface used to obtain information about the database, JDBC driver, tables, columns, and supported database features. It is obtained from a Connection object using the getMetaData() method. Using DatabaseMetaData, a Java program can dynamically inspect database information without directly querying system tables. This is useful for database administration, debugging, database migration

Application Monitoring Read More »

Swagger UI

Swagger UI is an interactive web page that displays your REST API and lets you call it directly from the browser. It is used so that developers and testers can explore endpoints, send real requests and see real responses without Postman. It reads the OpenAPI document (/v3/api-docs) and builds a clickable page from it automatically.

Swagger UI Read More »

Transaction Management

DatabaseMetaData is a JDBC interface used to obtain information about the database, JDBC driver, tables, columns, and supported database features. It is obtained from a Connection object using the getMetaData() method. Using DatabaseMetaData, a Java program can dynamically inspect database information without directly querying system tables. This is useful for database administration, debugging, database migration

Transaction Management Read More »

SMTP Configuration

SMTP (Simple Mail Transfer Protocol) is the standard protocol applications use to send email through a mail server. Spring Boot connects to an SMTP server using the spring-boot-starter-mail dependency and spring.mail.* properties. It auto-creates a JavaMailSender bean, so you can send emails without writing any connection code. It is used for registration confirmations, password resets,

SMTP Configuration Read More »

JPA and Hibernate

JPA (Java Persistence API) is a standard specification in Java that provides a simple way to map Java objects to relational database tables using Object-Relational Mapping (ORM). Instead of writing SQL queries manually as in JDBC, developers can work with Java classes and objects, while JPA handles the conversion between objects and database records. Hibernate

JPA and Hibernate Read More »

Working with Postgres Database Access with Spring Boot

DatabaseMetaData is a JDBC interface used to obtain information about the database, JDBC driver, tables, columns, and supported database features. It is obtained from a Connection object using the getMetaData() method. Using DatabaseMetaData, a Java program can dynamically inspect database information without directly querying system tables. This is useful for database administration, debugging, database migration

Working with Postgres Database Access with Spring Boot Read More »

Building and Running the Application(Capstone Project)

Learn how to build, package, configure, and run a complete Spring Boot application as a standalone application. This capstone project combines the concepts learned in the previous sections, including Spring Boot Starters, Auto Configuration, Embedded Server, REST APIs, JPA, database connectivity, application properties, and Maven build commands. The project demonstrates how a Spring Boot application

Building and Running the Application(Capstone Project) Read More »

Scroll to Top