Skip to content

Instantly share code, notes, and snippets.

/gist:801ec444855687db5964 Secret

Created Oct 3, 2013
Embed
What would you like to do?
public interface TimeService {
Long getCurrentTime();
}
@Component
public class TimeServiceImpl implements TimeService {
@Override
public Long getCurrentTime(){
return System.currentTimeMillis();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment