I hereby claim:
- I am hvho on github.
- I am hvho (https://keybase.io/hvho) on keybase.
- I have a public key ASDv1YInPIExAf-_ebgd02TD6GTDrv0N53hXlQXeTPoXzQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
🌞 Morning 4 commits ▍░░░░░░░░░░░░░░░░░░░░ 2.2% | |
🌆 Daytime 74 commits ████████▍░░░░░░░░░░░░ 40.0% | |
🌃 Evening 96 commits ██████████▉░░░░░░░░░░ 51.9% | |
🌙 Night 11 commits █▏░░░░░░░░░░░░░░░░░░░ 5.9% |
export AWS_ACCESS_KEY_ID=${위에서 생성한 ACCESS KEY} | |
export AWs_SECRET_ACCESS_KEY=${위에서 생성한 SECRET ACCESS KEY} |
resource "aws_instance" "example" { | |
ami = "ami-0ba5cd124d7a79612" | |
instance_type = "t2.micro" | |
vpc_security_group_ids = [aws_security_group.instance.id] | |
user_data = <<-EOF | |
#!/bin/bash | |
echo "Hello, World" > index.html | |
nohup busybox httpd -f -p 8080 & |
@Service | |
class RetryableService { | |
@Autowired | |
private lateinit var retryTemplate: RetryTemplate | |
fun run() : Unit { | |
retryTemplate.execute<Unit, Throwable> { | |
action() | |
} |
@Service | |
class RetryableService { | |
@Autowired | |
private lateinit var retryTemplate: RetryTemplate | |
fun run() : Unit { | |
retryTemplate.execute<Unit, Throwable> { | |
action() | |
} |
@Service | |
class RetryableService { | |
@Retryable | |
fun run() : Unit { | |
action() | |
} | |
} |
implementation("org.springframework.retry:spring-retry") | |
implementation("org.springframework:spring-aspects") |
@SpringBootApplication | |
@EnableRetry | |
class RetryTestApplication | |
fun main(args: Array<String>) { | |
// main function | |
} |
@Service | |
class RetryableService { | |
@Autowired | |
private lateinit var retryTemplate: RetryTemplate | |
@Retryable | |
fun doWithRetry() : Unit { | |
randomFail() | |
} |