07.07-20 (Wednesday)
- fix the issue with version for FE locally run;
- SHRD-129: autoscaling setting up;
- bugs fixing:
- SHRD-127: files downloading endpoints;
- SHRD-184: users deletion endpoints.
Time: 8h
06.07-20 (Tuesday)
| <dependency> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-starter-data-elasticsearch</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.springframework.data</groupId> | |
| <artifactId>spring-data-elasticsearch</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.github.vanroy</groupId> |
| curl --request PUT 'http://HOST:PORT/index_name/_settings' \ | |
| --header 'Content-Type: application/json' \ | |
| --data-raw '{ | |
| "max_result_window": 1000000 | |
| }' |
| { | |
| "index.number_of_shards": 4, | |
| "index.number_of_replicas": 2, | |
| } |
| "_shards": { | |
| "total": 10, | |
| "successful": 5, | |
| "failed": 0 | |
| } |
07.07-20 (Wednesday)
Time: 8h
06.07-20 (Tuesday)
| public class BlockTest { | |
| public static void main(String[] args) { | |
| String htmlBlock = """ | |
| <html> | |
| <body>\ | |
| <p>Hello, '\s' World</p>\ | |
| </body> | |
| </html>"""; |
| public class Switch { | |
| public static void main(String[] args) { | |
| String animal = "Fox"; | |
| switch (animal) { | |
| case "Dog", "Cat" -> System.out.println("Pets"); | |
| case "Tiger","Fox" -> System.out.println("Wild Animals"); | |
| case "Parrot","Pigeon","Sparrow" -> System.out.println("Birds"); | |
| } | |
| } | |
| } |
| public class Switch { | |
| public static void main(String[] args) { | |
| String animal = "Fox"; | |
| switch (animal) { | |
| case "Dog": | |
| case "Cat": | |
| System.out.println("Pets"); | |
| break; | |
| case "Tiger": | |
| case "Fox": |
| public class TestSwitch { | |
| public static void main(String[] args) { | |
| String operator = "+"; | |
| switch (operator) { | |
| case "+": | |
| System.out.println("Addition"); | |
| break; | |
| case "-": | |
| System.out.println("Substraction"); |
| public record Point(double x, double y) { } | |
| public static void main(String[] args) { | |
| Point a = new Point(0.5, 2.0); | |
| System.out.println(a.x()); // 0.5 | |
| System.out.println(a.y()); // 2.0 | |
| Point b = new Point(0.8, 10); | |
| System.out.println(b.x()); // 0.8 |