-
인터넷 네트워크
2025.04.01
-
[Java] Switching java version on MacOS
1. Open Terminal and Type the following command to list the installed Java versions: /usr/libexec/java_home -V 2. This command will output a list of intalled Java versions. Matching Java Virtual Machines (2): 17.0.10 (arm64) "Azul Systems, Inc." - "Zulu 17.48.15" /Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home 1.8.0_402 (arm64) "Azul Systems, Inc." - "Zulu 8.76.0.17" /Library/Java/Ja..
2024.03.16
-
[Port] address already in use
As is port 3000 and 8080, port 5000 is commonly used to serve local development servers. I noticed that a Docker container couldn't use port 5000. I checked for conflicting processes using lsof. sudo lsof -i :5000 I found out the process using the port was named ControlCenter, which is a native macOS application To resolve this issue, I unchecked AirPlay Receiver.
2024.03.15
-
IoC, Dependency Injection
Inversion of control(IoC) The approach of outsourcing the construction and management of objects Spring Container Primary fuctions Create and manage objects(Inversion of Control) Inject object dependencies(Dependency Injection) Dependency Injection The client delegates to another object the responsibility of providing its dependencies Injection types Constructor Injection Setter Injection Auto w..
2024.03.12
-
Spring Boot Dev Tools
The problem When running Spring Boot applications, If you make changes to your source code, then you have to manually restart your application. Solution : Spring Boot Dev Tools Automatically restarts your application when code is updated 1. Adding the dependency to your POM file org.springframework.boot spring-boot-devtools 2. Preferences > Build, Execution, Deployment > Complier 3. Preferences ..
2024.03.09