[펌글] STRUTS – SPRING 연계 방법
[출처] STRUTS – SPRING 연계|작성자 돌맹이 1. 코드로 서비스를 직접 받아 오기 아주 단순한 방법이다. ApplicationContext를 가져 와서 bean을 직접 찾아 온다. 스트럿츠의 action에서 직접 코딩해 준다. 1) Action 클래스는 org.springframework.web.struts.ActionSupport 를 상속해야 한다. 2) 직접 코딩 ApplicationContext ctx = getWebApplicationContext(); TreeService treeService = (TreeService)ctx.getBean(“treeService”); 특징: 스프링과 스트럿츠가 완전 따로 논다. 장점: 설정이… Read More »