adding PathMatchingResourcePatternResolver to resolve sql queries