Teste.java
782 Bytes
import org.springframework.context.support.ClassPathXmlApplicationContext;
import br.gov.mc.cadsei.service.GenericService;
public class Teste {
public static void main(String[] args) {
// (SimpleMail) SpringUtil.getBean("SimpleMail",
// "applicationContext-service.xml");
ClassPathXmlApplicationContext factory = new ClassPathXmlApplicationContext(
"applicationContext.xml");
GenericService generic = (GenericService) factory
.getBean("genericService");
System.out.println(generic.obtemValorParametro("URL_WEB_SERVICE_SEI"));
// ProponenteService service = (ProponenteService) factory
// .getBean("proponenteService");
// List<?> lista = service.getProponentes();
// for (Object object : lista) {
// System.out.println(object);
// }
}
}