Created
October 16, 2014 13:14
-
-
Save gabanox/e69c8871ea9670241f2e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you. Good work