- Spring Boot Elasticsearch
Spring Data has a starter for Elasticsearch that takes away the boilerplate code of configuring Elasticsearch to work with Spring. First create a springboot application. Include this dependency to import Elasticsearch dependencies. <dependency> <groupId>org.springframework.boot</groupId>…
- Code Snippets
- Code Snippets
This page is a quick-reference collection of commonly needed Java code snippets. Every snippet is self-contained, includes required imports, and shows expected output in comments. Copy, paste, adapt, and ship. Snippets use modern Java where appropriate (Java 8+ Streams, Java 11+ HttpClient,…
- AWS – Elastic Container Service(ECS)
ECS with AWS CLI Get list of clusters within ECS aws ecs list-clusters –profile {profile-name} // output { “clusterArns”: [ “arn:aws:ecs:us-east-1:123456789:cluster/server-api”, “arn:aws:ecs:us-east-1:123456789:cluster/server-web” ] } Get list of services within a cluster aws ecs list-services…
- Stack
Stack is a simple data structure that allows adding and removing elements in a particular order. Every time an element is added, it goes on the top of the stack and the only element that can be removed is the element that is at the top of the stack, just like a pile of objects. A […]