Skip to content

Instantly share code, notes, and snippets.

@boyko11
Created December 8, 2013 04:20
package app.service;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.springframework.stereotype.Component;
@Component
public class SomeService {
public void doSomeServiceWork() {
System.out
.println("Hey, hey, Heeeey, you've got this thing working. The time is: "
+ new SimpleDateFormat("HH:mm:ss").format(new Date()));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment