Skip to content

Instantly share code, notes, and snippets.

View benfogel's full-sized avatar

Benjamin Fogel benfogel

View GitHub Profile
@RestController
@RequestMapping("/scope")
public class TestController {
@Autowired
private IncorrectScopeBean incorrectScopeBean;
@GetMapping("/incorrect")
public String callIncorrectScopeField(@RequestParam String requestId) throws InterruptedException {
return incorrectScopeBean.run(requestId);
@Component
public class IncorrectScopeBean {
private String requestId;
public String run(String requestId) throws InterruptedException {
this.requestId = requestId;
Thread.sleep(5000);
@benfogel
benfogel / install-docker-compose.sh
Created April 26, 2018 03:55
Installing docker-compose on Amazon Linux AMI
sudo yum update
sudo yum install -y docker
sudo usermod -a -G docker ec2-user
sudo curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-`uname -s`-`uname -m` | sudo tee /usr/local/bin/docker-compose > /dev/null
sudo chmod +x /usr/local/bin/docker-compose
sudo service docker start
sudo chkconfig docker on