|
|
@ -3,9 +3,16 @@ package app; |
|
|
|
import org.springframework.boot.SpringApplication; |
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication; |
|
|
|
|
|
|
|
import java.time.Instant; |
|
|
|
|
|
|
|
@SpringBootApplication |
|
|
|
public class MainApi { |
|
|
|
public static void main(String[] args) { |
|
|
|
try { |
|
|
|
System.out.printf("Build date: %s\n", Instant.ofEpochSecond(Long.parseLong(System.getenv("BUILDDATE")))); |
|
|
|
} catch (Exception err) { |
|
|
|
System.out.println("Cannot parse build date"); |
|
|
|
} |
|
|
|
SpringApplication.run(MainApi.class, args); |
|
|
|
} |
|
|
|
} |
|
|
|