resource using spring