use spring resource to get resource file