Skip to content

Instantly share code, notes, and snippets.

@gabanox
Created October 16, 2014 13:14
Show Gist options
  • Save gabanox/e69c8871ea9670241f2e to your computer and use it in GitHub Desktop.
Save gabanox/e69c8871ea9670241f2e to your computer and use it in GitHub Desktop.
package com.company.app;
import org.springframework.context.support.GenericXmlApplicationContext;
import com.company.app.annotation.dao.ContactSfDao;
public class JdbcContactSfDaoTest {
public static void main(String[] args) {
GenericXmlApplicationContext ctx = new GenericXmlApplicationContext();
ctx.load("classpath:app-context-sf.xml");
ctx.refresh();
ContactSfDao contactSfDao = ctx.getBean("contactSfDao", ContactSfDao.class);
System.out.println(contactSfDao.getFirstNameById(1l));
}
}
@ikitellimatbaa
Copy link

Thank you. Good work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment