@Scheduled(cron = "0 17 11 * * ?", zone = "JST") // At 11:17:00am every day JST
public void reportCurrentTime() {
log.info("The time is now {}", dateFormat.format(new Date()));
}
Ref:
AWSTemplateFormatVersion: '2010-09-09' | |
Description: 'CloudFront distribution with an S3 origin for static pages' | |
Parameters: | |
domainName: | |
Description: 'Domain name for your website (example.com)' | |
Type: 'String' | |
acmCertArn: | |
Description: 'ACM Certification ARN (in us-east-1 region)' | |
Type: 'String' |
0 0 | |
1 1 | |
2 2 | |
3 3 | |
4 4 | |
5 5 | |
6 6 | |
7 7 | |
8 8 | |
9 9 |
AWSTemplateFormatVersion: "2010-09-09" | |
Description: 'Core network & security group stack template' | |
Parameters: | |
app: | |
Description: 'App name tag' | |
Type: String | |
env: | |
Description: 'Environment tag' | |
Type: String |
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; | |
import org.springframework.util.ReflectionUtils; | |
import java.beans.PropertyDescriptor; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.Method; | |
import java.util.HashMap; | |
import java.util.Map; | |
public class JacksonMapUtils { |
FROM openjdk:8-jdk-alpine | |
ENV JAVA_OPTS="" | |
VOLUME /tmp | |
ARG DEPENDENCY=api/build/dependency | |
COPY docker-entrypoint.sh /usr/local/bin/ | |
COPY ${DEPENDENCY}/BOOT-INF/lib /api/lib | |
COPY ${DEPENDENCY}/META-INF /api/META-INF | |
COPY ${DEPENDENCY}/BOOT-INF/classes /api | |
ENTRYPOINT ["docker-entrypoint.sh"] | |
CMD ["sh", "-c", "java $JAVA_OPTS -cp api:/api/lib/* xxx.xxx.xxx.App"] |
#!/usr/bin/env bash | |
if [[ "$#" -ne 3 ]]; then | |
echo "Illegal number of parameters" | |
echo "Usage: deploy BASE_URL S3_URL DISTRIBUTION_ID" | |
exit 1 | |
fi | |
# Base URL | |
BASE_URL=$1 |
package io.nayu.spring.secretsdemo | |
import com.amazonaws.auth.AWSStaticCredentialsProvider | |
import com.amazonaws.auth.BasicAWSCredentials | |
import com.amazonaws.services.secretsmanager.AWSSecretsManagerClientBuilder | |
import com.amazonaws.services.secretsmanager.model.GetSecretValueRequest | |
import org.springframework.boot.SpringApplication | |
import org.springframework.boot.context.event.ApplicationFailedEvent | |
import org.springframework.boot.context.event.ApplicationReadyEvent | |
import org.springframework.boot.context.event.SpringApplicationEvent |