change datasource config to spring resource