A simple blogging application built with Java and Spring Boot.
- Java 21
- Spring Boot 3.5.5
- Maven
- Spring Data JPA
- Thymeleaf
- MySQL
- Java 21
- Maven
- MySQL
- Clone the repository:
git clone https://github.com/abhigithubgaur/Blog-Application.git
- Create the database:
- Open MySQL and create a new database named
jdbc_db
.
- Open MySQL and create a new database named
- Configure the database:
- Open
src/main/resources/application.properties
and update the following properties with your MySQL credentials:spring.datasource.username=your-username spring.datasource.password=your-password
- Open
- Build the project:
mvn clean install
- Run the application:
mvn spring-boot:run
- Open your browser and navigate to
http://localhost:8081
src/main/java
: Contains the main source code.controller
: Contains the Spring MVC controllers.model
: Contains the data models.repository
: Contains the data repositories.
src/main/resources
: Contains the application resources.templates
: Contains the Thymeleaf templates.application.properties
: Contains the application configuration.
pom.xml
: The Maven project configuration file.