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
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 |
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
@Component | |
public class IncorrectScopeBean { | |
private String requestId; | |
public String run(String requestId) throws InterruptedException { | |
this.requestId = requestId; | |
Thread.sleep(5000); |
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
@RestController | |
@RequestMapping("/scope") | |
public class TestController { | |
@Autowired | |
private IncorrectScopeBean incorrectScopeBean; | |
@GetMapping("/incorrect") | |
public String callIncorrectScopeField(@RequestParam String requestId) throws InterruptedException { | |
return incorrectScopeBean.run(requestId); |