Spring 3

Scheduling Tasks

Spring guide (스프링 가이드 실습) https://spring.io/guides/gs/scheduling-tasks/ ▶ 학습목표 1. Spring 을 이용하여 기본적인 스케쥴링을 할 수 있다. ▶ Dependency - build.gradle 더보기 plugins { id 'org.springframework.boot' version '2.6.1' id 'io.spring.dependency-management' version '1.0.11.RELEASE' id 'java' } group = 'com.example' version = '0.0.1-SNAPSHOT' sourceCompatibility = '1.8' repositories { mavenCentral() } dependencies..

Spring bean Scope - Singleton vs Prototype 에 대한 간단 테스트

Spring 문서 https://docs.spring.io/spring-framework/docs/3.0.0.M3/reference/html/ch04s04.html 4.4 Bean scopes The other scopes, namely request, session, and global session are for use only in web-based applications (and can be used irrespective of which particular web application framework you are using, if indeed any). In the interest of keeping related concepts docs.spring.io 오해한것 ? Prototype 은 ..

[Team Study] [Singleton2 - Java ver] Spring MVC 에서 Singleton에 대한 고찰

학습목표 : - Spring Framework 에서 싱글톤의 개념을 이해한다. - 싱글톤의 개념을 통해 IoC & DI 까지 살펴본다. - Java Singleton 과 다른 점을 살펴본다. 1. 준비하기 - 이클립스, 메이븐 설치등.. ( 참고 - old-developer.tistory.com/63 ) 2. 클래스 개념도 및 스프링 컨테이너 보기 3. 설명 - Class 새(Bird)가 있다. - 참새(Sparrow) 와 독수리(Eagle)은 새를 상속받는다. - 참새와 독수리는 날수 있다. 날아가는 것을 인터페이스로 표현한다. - 참새와 독수리를 IoC 컨테이너에 넣어서 사용한다. - 인젝션을 설명하기 위해 억지스러운 class Who 를 만든다. - 위 내용이 이해가 안가면, 아래 소스를 직접 구현..