Spring Boot Development Guide: Component-based Development Order and Best Practices

Core Components of Spring Boot Applications Let’s explore the main components and their roles involved in developing Spring Boot applications: 1. Entity An object that maps to a database table. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 @Entity @Table(name = "users") public class User { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column(nullable = false) private String username; @Column(nullable = false) private String email; // getter, setter, constructor } 2. Repository An interface that handles database operations. ...

May 25, 2024 · 3 min · 488 words · In-Jun Hwang

Entity Relationship Diagrams (ERDs)

An Entity Relationship Diagram (ERD) is a graphical representation of the structure of a database. ERDs show the relationships between tables in a database, making it easier to understand the design and structure of the database. Components of an ERD An ERD is made up of the following components: Entities Attributes Relationships Entities An entity represents an object that you want to manage in your database. For example, a student, a professor, or a course could all be entities. ...

May 25, 2024 · 2 min · 390 words · In-Jun Hwang

HTTP methods in a nutshell

The HTTP protocol is a communication protocol for transmitting data between a client and a server. The HTTP protocol consists of requests and responses, and the methods used in requests and responses are called HTTP methods. HTTP Methods An HTTP method is a method used by a client to send a request to a server. There are various methods depending on the type of request. GET POST PUT PATCH DELETE HEAD OPTIONS CONNECT TRACE GET The GET method is used to retrieve a specific resource. This method is used to query data from the server and returns the resource as a response to the request without modifying the data. ...

May 25, 2024 · 5 min · 903 words · In-Jun Hwang

Getting to know Spring Boot

What is Spring? Spring is a framework based on the Java language that provides various features for developing enterprise-grade applications. Spring has the following characteristics: Lightweight container: Spring is a lightweight container that manages the creation of objects, their lifecycle, and dependency management. Inversion of Control (IoC): Spring supports Inversion of Control, which allows the Spring container to manage the creation, lifecycle, and dependency management of objects. Dependency Injection (DI): Spring supports Dependency Injection, which allows the Spring container to manage the dependencies between objects. ...

May 16, 2024 · 5 min · 1030 words · In-Jun Hwang

Learn about call by value & call by reference

Differences between call by value and call by reference There are call by value and call by reference methods when passing arguments to a function. Let’s learn the differences between the two methods. Call by value A method that passes only the value when passing an argument to a function Even if the value of the argument is changed within the function, the value of the calling side is not changed. Usually used when passing a variable 1 2 3 4 5 6 7 8 9 10 11 12 13 14 #include <stdio.h> void swap(int a, int b) { int temp = a; a = b; b = temp; } int main() { int a = 10, b = 20; swap(a, b); printf("a: %d, b: %d", a, b); return 0; } Execution result: ...

May 16, 2024 · 2 min · 366 words · In-Jun Hwang