You can put your queries in a xml file
In Spring application Context, load this xml file
Inject this bean in your DAO class
Define queryProps in your DAO class and don't forget to have setter method for this
private Properties queryProps;
Now you can access the query in your DAO like this -
String query = queryProps.getProperty("getPersonById");
Hope this helps.