IntelliJ
https://freehoon.tistory.com/147
Spring Boot 시작하기
https://spring.io/guides/gs/spring-boot/
actuator
https://jeong-pro.tistory.com/160
To Docker
https://spring.io/guides/gs/spring-boot-docker/
https://medium.com/@gaemi/spring-boot-과-docker-with-jib-657d32a6b1f0
Dockerfile 빌드
1
mkdir -p build/dependency && (cd build/dependency; jar -xf ../libs/*.jar)
1
$ docker build -t spring-server .
Build a Docker Image with Gradle
build image
1
gradlew bootBuildImage --imageName=spring-server
run
1
docker run -p 8080:8080 -t spring-server
run with environment
1
2
3
4
5
docker run -e "SPRING_PROFILES_ACTIVE=prod" -p 8080:8080 -t spring-server
or
docker run -e "SPRING_PROFILES_ACTIVE=dev" -p 8080:8080 -t spring-server
debug
1
docker run -e "JAVA_TOOL_OPTIONS=-agentlib:jdwp=transport=dt_socket,address=5005,server=y,suspend=n" -p 8080:8080 -p 5005:5005 -t spring-server
Push to docker hub
1
2
docker tag spring-server qwlake/spring-server:{tagname}
docker push qwlake/spring-server:{tagname}
Pull from docker hub
1
docker pull qwlake/spring-server:tagname
What java.security.egd option is for?
https://stackoverflow.com/questions/58991966/what-java-security-egd-option-is-for
Database
1
docker-compose -f db.yml up
Issue
Consider defining a bean named ‘entityManagerFactory’ in your configuration.
Spring Boot (개념 참고)
Spring MVC 구조의 처리 과정을 설명해보시오. (MVC process)
https://jeong-pro.tistory.com/96
Spring singleton pattern
https://medium.com/webeveloper/싱글턴-패턴-singleton-pattern-db75ed29c36
IoC Inversion of Control
객체 생성 삭제 등에 관한 모든 권한을 스프링에 넘기고 난 필요한 것만 호출
DI Dependency Injection
싱글톤 패턴으로 생성된 빈 객체를 주입 → autowired로 가져와 사용
Dispatcher-Servlet
-
Previous
[MSA] 크롤링 모듈 MS(Micro Service)로 포팅해서 gRPC 서버로 만들기 - gRPC 예제 링크와 gRPC 서버, gRPC 클라이언트 실행방법 -
Next
[MSA] k8s 간단 개념 정리