[Spring] 생성자를 이용한 Dependency Injection Example

[Spring] 생성자를 이용한 Dependency Injection Example

1 2 3 4 5 6 7 8 9 10 11 12 13

< ?xml version = "1.0" encoding = "UTF-8" ? > < beans xmlns = http://www.springframework.org/schema/beans" xmlns:xsi = http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation = http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd" > < bean class = com.shnav.ex01.vo.RSAEncryption" id = "rsaEncryption" / > < bean id = "communication" class = com.shnav.ex01.vo.Communication" > < constructor-arg ref = "rsaEncryption" / > < / bean > < / beans >

from http://shnav.tistory.com/24 by ccl(A) rewrite - 2020-03-21 16:54:25

댓글

이 블로그의 인기 게시물

데이터 바인딩 추상화 - propertyEditor

[sts] spring boot groovy 적용 실행 하기

2020 LCK 롤챔스 Spring 경기 재개 및 일정