티스토리 뷰

기록

Spring - XML Schema-based configuration

Korean Eagle 2022. 1. 11. 22:25
728x90

이제 한물간 XML 설정이지만 필요한 때가 있다. 한 예로, 프록시 생성을 위해서 BeanFactory를 등록하는 경우에 종종 테스트를 위해서 BeanFactory를 주입받아야 할 경우가 있는데 XML설정이 더 편리하다.

 

JavaConfig로는 가능한지 모르겠다.

 

그리고 xml 스키마는 항상 기억하기 너무 힘들다. 

 

아래의 페이지에서 XML Schema-based configuration 검색한 후에 xml 스키마를 복사해서 사용하면 편리하다.

 

 

 

Core Technologies

In the preceding scenario, using @Autowired works well and provides the desired modularity, but determining exactly where the autowired bean definitions are declared is still somewhat ambiguous. For example, as a developer looking at ServiceConfig, how do

docs.spring.io

 

 

728x90
댓글