@PostMapping("/uploads", consumes = ["multipart/form-data"])
fun sendApplyEmail(
@RequestPart body: FormBodyDto,
@RequestPart("files", required = false) files: List<MultipartFile>
) {
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 0 | |
1 1 | |
2 2 | |
3 3 | |
4 4 | |
5 5 | |
6 6 | |
7 7 | |
8 8 | |
9 9 |