The "Java: Cannot find a symbol" error is a compilation error. After researching, I found that it was this line that was causing the error: public static UserDto map(User user) { return null; }. This is probably because of how your defining it. Even in other lang, doing that could be problematic. If the problem persists, please comment it and I will try again. Cheers.