This file contains hidden or 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 | |
| public class Demo1Controller { | |
| private RestTemplate restTemplate; | |
| public Controller(RestTemplate restTemplate) { | |
| this.restTemplate = restTemplate; | |
| } | |
| @GetMapping("/demo1") |
This file contains hidden or 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
| @Getter | |
| public class CreateCustomerRequest { | |
| @Size(min = 2, max = 100, message = "Customer's first name should be between {min} & {max} " | |
| + "characters long") | |
| @NotBlank(message = "Customer's first name is required") | |
| private String firstName; | |
| @Size(min = 2, max = 100, message = "Customer's last name should be between {min} & {max} " | |
| + "characters long") |
This file contains hidden or 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 ActiveMqService implements MessagingService { | |
| @Override | |
| public String getType() { | |
| return MessagingServiceType.ACTIVE_MQ.getValue(); | |
| } | |
| @Override | |
| public void sendMessage(String message) { | |
| System.out.println("Sending message via ActiveMQ"); |
This file contains hidden or 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
| apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: maria | |
| labels: | |
| app: maria | |
| spec: | |
| replicas: 1 | |
| template: | |
| metadata: |
This file contains hidden or 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
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: maria-db | |
| spec: | |
| selector: | |
| app: maria | |
| ports: | |
| - port: 3306 | |
| targetPort: 3306 |
This file contains hidden or 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
| apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: rest-deployment | |
| labels: | |
| app: node-rest | |
| spec: | |
| template: | |
| metadata: | |
| labels: |
This file contains hidden or 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
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: rest-service | |
| spec: | |
| selector: | |
| app: node-rest | |
| ports: | |
| - port: 3000 | |
| targetPort: 3000 |
This file contains hidden or 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
| apiVersion: v1 | |
| kind: Secret | |
| metadata: | |
| name: db-secret | |
| data: | |
| username: aW5kLWdlbw== | |
| password: ZHNnaGVyaGc5cjQ5 | |
| database: Z2VvX2RldGFpbHM= |
This file contains hidden or 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
| outlook | |
| ======= | |
| rainy - 0 | |
| overcast - 1 | |
| sunny - 2 | |
| temp | |
| ==== | |
| hot - 0 | |
| mild - 1 |
This file contains hidden or 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
| { | |
| "configurations": [ | |
| { | |
| "nagios-env": { | |
| "nagios_contact": "admin@localhost" | |
| }, | |
| "hive-site": { | |
| "javax.jdo.option.ConnectionUserName": "hive", | |
| "javax.jdo.option.ConnectionPassword": "hive" | |
| } |