title: MyBatis Nullpointer related to @Autowired
body: <p>I'm trying to write a program that will write to a mySql database using myBatis.  I need to create a table containing id's and values.  Currently I have a tag class, which holds these values, a tag dao interface, a tag xml implementation, and a main method.  I am getting a nullpointer exception that I think is related to the @Autowired statement.  If I use the @Autowired statement when I initialize the interface and the @Param statement when I write the interface, where in the code does my program know where to find the bean containing the information to find the xml file?</p>