Java
외부 java 파일에서 service 가져오기
pikisvill
2021. 11. 19. 09:51
배치 등에서 외부 service 가져와야 할때
WebApplicationContext wac = WebApplicationContextVO.getWebApplicationContext();
TestMailService service = (TestMailService)wac.getBean("testMailService");