add mysql

This commit is contained in:
kimscott
2020-01-09 11:56:02 +09:00
parent 61ae7d231e
commit 6b6120aa2a
2 changed files with 10 additions and 1 deletions

View File

@@ -86,7 +86,7 @@ steps:
initialDelaySeconds: 10
timeoutSeconds: 2
periodSeconds: 5
failureThreshold: 1
failureThreshold: 5
livenessProbe:
httpGet:
path: /actuator/health

View File

@@ -9,11 +9,20 @@ import org.springframework.messaging.support.MessageBuilder;
import org.springframework.stereotype.Service;
import org.springframework.util.MimeTypeUtils;
import java.text.SimpleDateFormat;
import java.util.Date;
public class AbstractEvent {
String eventType;
String timestamp;
public AbstractEvent(){
this.setEventType(this.getClass().getSimpleName());
SimpleDateFormat defaultSimpleDateFormat = new SimpleDateFormat("YYYYMMddHHmmss");
this.timestamp = defaultSimpleDateFormat.format(new Date());
}
public String getEventType() {
return eventType;
}