How chikashishirozu/springboot-gradle-new_blog works
Project type and purpose
• This is a monolithic, full-stack web application built on Spring Boot.
• Its purpose is to provide a simple “new blog” platform with user registration, authentication, role-based access, CRUD operations on blog posts, and an administrative dashboard.
File structure
• Top-level build files (build.gradle, settings.gradle, Gradle wrapper) confirm a Gradle-based build system.
• The src/main/java/com/example/new_blog package follows the standard Spring Boot layout:
• NewBlogApplication.java – entry point annotated with @SpringBootApplication
• config/SecurityConfig.java – Spring Security setup
• controller/… – REST or MVC controllers (HomeController, BlogController)
• service/BlogService.java – business logic
• repository/BlogRepository.java – Spring Data JPA interface
• model/Blog.java – JPA Entity
• src/main/resources contains:
• application.properties – Spring Boot configuration
• db/migration/V*.sql – Flyway or Liquibase migration scripts for schema + sample data
• static/ and templates/ – front-end assets and Thymeleaf HTML templates
• External jars (H2, MySQL connector, jBCrypt) and SQL scripts at the root support local development and encryption.
• src/test replicates the above structure for unit and integration tests.
README
• Minimal instructions, only how to compile with Gradle.
Elements
• From Browser to Controller (HTTP requests/responses)
• Controller → Service → Repository → Database (data flow)