Whiteship
  • Home
  • 인프런 강의
  • Java
  • Spring
  • JPA
  • SDE Tips
Subscribe
Tagged

Constructor Injection

A collection of 2 posts

Constructor Injection

Constructor Injection 할 때 인자 구분

Setter Injection을 할 때는 property의 name이 표기가 되니까 어디로 들어가는 값인지 명확하지만 Constructor Injectoin을 할 때는 순서에 의존하게 되는데.. 좀.. 불명확 합니다.    <bean id=”keesun2″ class=”beanConfiguration.Member”>        <constructor-arg value=”whiteship” />     

  • 백기선
백기선 Mar 8, 2007 • 1 min read
Constructor Injection

Setter Injection &amp; Constructor Injection

예제로 사용될 Member 클래스 입니다.[#M_ more.. | less.. |import java.util.List; public class Member {     public Member(){}     public Member(String id, String password){        this.id = id;        this.password = password;    }     private String id;    

  • 백기선
백기선 Mar 8, 2007 • 2 min read
Whiteship © 2022
Powered by Ghost