사용자 도구

사이트 도구


springframework

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
springframework [2011/12/19 16:24]
kwon37xi 새로 만듦
springframework [2022/10/24 14:01] (현재)
kwon37xi
줄 1: 줄 1:
 ====== Spring Framework ====== ====== Spring Framework ======
-  * [[http://static.springsource.org/spring/docs/3.1.x/javadoc-api/org/springframework/util/package-summary.html|Spring Utils]]+  * [[http://www.springsource.org/|Spring Source]] 
 +  * [[https://github.com/spring-projects-experimental|spring-projects-experimental]] 
 +  * [[http://www.springbyexample.org/|Spring By Example]] 
 +  * [[https://github.com/ThomasVitale/awesome-spring|Awesome Spring]] 
 +  * [[https://src.springsource.org/svn/spring-samples/|Spring Samples]] 
 +  * [[http://springtutorials.com/introduction-to-spring-modules/|Spring Modules]] 
 +  * [[http://www.baeldung.com/spring-core-annotations|Spring Core Annotations | Baeldung]] 
 +  * [[https://github.com/spring-projects/spring-petclinic|Spring Pet Clinic - 예제]] 
 +    * [[https://github.com/spring-petclinic|Spring Petclinic Community]] 
 + 
 +===== Offline(No Internet Connection) 상태에서의 Spring 설정 파일 ===== 
 +  * [[http://stackoverflow.com/questions/1729307/spring-schemalocation-fails-when-there-is-no-internet-connection|Spring schemaLocation fails when there is no internet connection]] 
 + 
 +===== 기본 Context 실행 ===== 
 +<code java> 
 +public class Main { 
 +    private static final Logger log = LoggerFactory.getLogger(Main.class); 
 +    public static void main(String[] args) { 
 + 
 +        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext([ProjectContext].class); 
 +        try { 
 + 
 +            UserService userService = context.getBean(UserService.class); 
 +        } finally { 
 +            context.close(); 
 +        } 
 +    } 
 +
 +</code> 
 + 
 +===== 등록된 모든 bean 목록보기 ===== 
 +  * 토비의 Spring 3.1 1권 692쪽 
 +<code java> 
 +@Autowired DefaultListableBeanFactory bf; 
 + 
 +for (String name : bf.getBeanDefinitionNames()) { 
 +  System.out.println(name + "\t" + bf.getBean(name).getClass().getCanonicalName()); 
 +
 +</code> 
 + 
 +===== 동일한 이름의 Bean 중복 정의 ===== 
 +동일한 이름의 Bean을 동일 컨텍스트(부모/자식간 말고)에서 여러번 생성할 경우 앞서 생성된 것을 Override 해버린다. 
 +[[http://stackoverflow.com/questions/10993181/defining-the-same-spring-bean-twice-with-same-name|java - Defining the same Spring bean twice with same name]] 
 + 
springframework.1324279474.txt.gz · 마지막으로 수정됨: 2011/12/19 16:24 저자 kwon37xi