반응형 전체 글219 [PHP] pre-signed url, s3 객체 다운로드 url aws sdk를 사용하여 pre-signed url 생성하는 방법 - 이전글 참고 2023.10.12 - [Kotlin] - pre-signed url 사용하기, 일정 기간 동안 객체 다운로드 url 생성 pre-signed url 사용하기, 일정 기간 동안 객체 다운로드 url 생성 https://docs.aws.amazon.com/AmazonS3/latest/userguide/example_s3_Scenario_PresignedUrl_section.html Create a presigned URL for Amazon S3 using an AWS SDK - Amazon Simple Storage Service This documentation is for an SDK in preview release... 2023. 12. 5. pre-signed url 사용하기, 일정 기간 동안 객체 다운로드 url 생성 https://docs.aws.amazon.com/AmazonS3/latest/userguide/example_s3_Scenario_PresignedUrl_section.html Create a presigned URL for Amazon S3 using an AWS SDK - Amazon Simple Storage Service This documentation is for an SDK in preview release. The SDK is subject to change and should not be used in production. docs.aws.amazon.com https://docs.aws.amazon.com/ko_kr/AmazonS3/latest/userguide/S3OutpostsSh.. 2023. 10. 12. [Solved] composer source directory has uncommitted changes RUN composer config discard-changes true composer.json "config": { "discard-changes": true }, 2023. 9. 13. [Solved] The repository 'http://security.ubuntu.com/ubuntu focal-security InRelease' is not signed. 위의 에러와 같이 나온 에러에서 NO_PUBKEY라고 KEY 가 두 개 나오는데 차례로 등록하면 된다 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys {PUBKEY} 2023. 9. 13. [Solved] nginx depends libssl1.1 ( = 1.1.1) but it is not installable DockerFile 빌드할 때 nginx: depends: libssl1.1 ( = 1.1.1) but it is not installable 에러가 났다 echo "deb http://security.ubuntu.com/ubuntu focal-security main" | tee /etc/apt/sources.list.d/focal-security.list \ apt-get update \ apt install libssl1.1 \ 우분투 소스를 추가해서 강제로 libssl1.1 설치 2023. 9. 13. PHP AWS S3 파일 업로드 하기 zip 파일을 다운로드 받아서 하는 방법도 있지만 aws sdk를 설치하여 사용하면 더 간편하게 사용할 수 있다 composer로 AWS SDK 추가 composer require aws/aws-sdk-php PHP 스크립트에 자동 로드 추가 Amazon S3에서 AWS SDK를 사용하여 객체를 업로드 샘플 코드 require 'vendor/autoload.php'; use Aws\S3\S3Client; use Aws\S3\Exception\S3Exception; $bucket = '*** Your Bucket Name ***'; $keyname = '*** Your Object Key ***'; $s3 = new S3Client([ 'version' => 'latest', 'region' => 'us-.. 2023. 8. 25. [QueryDSL] stringTemplate, dateTemplate로 날짜 포맷 하기, 날짜 더하기 날짜 형식 변경할 때 select문에서 DATE_FORMAT 함수를 사용하려면 Expressions.stringTemplate("DATE_FORMAT( {0}, {1} )", 변경할 값, 변경할 날짜 형식) 예) createdAt 컬럼의 데이터를 "%Y-%m-%d %H:%i:%s" 형식으로 변경 fun date(cardNumber: String): String? { return queryFactory.select( Expressions.stringTemplate( "DATE_FORMAT( {0}, {1} )", createdAt, ConstantImpl.create("%Y-%m-%d %H:%i:%s") ).coalesce("") ).from(member).orderBy(member.id.desc()).f.. 2023. 7. 17. [Querydsl] 멀티 DB(Multi DB) 설정 하기, DB 2개 이상 연결 1. application.yml 에 Datasource 추가 spring: datasource: driverClassName: org.mariadb.jdbc.Driver url: jdbc:mariadb://localhost:3306/{DB명} username: {DB user} password: {DB password} second-datasource: driverClassName: org.mariadb.jdbc.Driver url: jdbc:mariadb://localhost:3306/{DB명} username: {DB user} password: {DB password} 2. DataSource Configuration 1) 첫 번째 DB 설정 @Configuration @EnableTransact.. 2023. 7. 17. [Spring Boot] Scheduled사용하여 특정 시간마다 동작하는 코드 구현 cron 특정 시간마다 동작하는 코드 구현 1. Main 클래스인 Application에 @EnableSchduleing 어노테이션 사용 @EnableScheduling @SpringBootApplication(exclude = [SecurityAutoConfiguration::class]) class Application fun main(args: Array) { runApplication(*args) } 2. 주기적으로 실행할 작업에 @Scheduled 어노테이션 사용 @Component class PaymentCancelScheduler{ @Scheduled(cron = "10 * * * * *", zone = "Asia/Seoul") fun claimChargingRequest() { printl.. 2023. 5. 19. 이전 1 2 3 4 5 ··· 25 다음 반응형