@Resource replaced by @AutoWired from spring dm

Injection problem has been modified