Copy from IOS to jumphost or linux server: Copy the other way, jumphost/linux server to Cisco IOS device:
Month: November 2021
Spring – @EnableConfigurationProperties Annotation
@EnableConfigurationProperties Annotation is connected to @ConfigurationProperties Every project automagically includes @EnableConfigurationProperties, and @ConfigurationProperties support is implicitly turned on in every application How to Use it This is our configuration class to configure other parts of the application. Now we can “register” our configuration bean using @EnableConfigurationProperties Now we can use AdditionalProperties like any other Spring bean.
Jackson – ObjectMapper
Use this if you want to make json files or read json text strings Class: OrderSerializer id name Problem(s):Want to get json out in a fileNeed to read/create object from json later Steps:(Add maven/grade dependencies)Create pojo to hold the data ie “OrderSerializer”, add jackson databind Create some ObjectMappers that will Map Objects to Json or… Continue reading Jackson – ObjectMapper
Kafka Record/ProducerRecord
https://kafka.apache.org/23/javadoc/org/apache/kafka/clients/producer/ProducerRecord.html Sends data to Kafka for holding/sending to consumers. public class ProducerRecord<K,V> extends Object A key/value pair to be sent to Kafka. This consists of a topic name to which the record is being sent, an optional partition number, and an optional key and value. If a valid partition number is specified that partition will… Continue reading Kafka Record/ProducerRecord
Kafka
Stupid name with a stupid story kevin Broker Single Kafka ServerDesigned to operate in a cluster Cluster Controller elected automagicallyAdmin Duties: Assigns partitions to brokersmonitors for broker failures Partition Owned by a single brokerbroker is then named the leader of the partition Retention Key feature, lasts for 7 days or 1GB
Zookeeper
Fact Sheet: Another apache thing they got, probably should have stopped at the webserver. Used by fucking Kafka install zookeeper then kafka Cluster is called an ensemble wants an Odd # of servers must have a quorum to continue functioning/responding to requests steal this book, don’t give them your real email, are you fucking crazy,… Continue reading Zookeeper
Web Flux – Flux
Flux publishes values
Web Flux – Reactor
Notes Reactive Streams – Contract, Asynchronous, non-blocking, backpressure– Interfaces Publisher Subscriber Subscription Processor Flux, Mono Mono – publish 0 or 1 elements Flux – [0 .. n] elements.
Web Flux – Flux Objects
Terminal Output When Executed.
Spring profiles
Running Spring boot application under different profiles: In intellij, click the edit configurations in the run/build dropdown Under Environment > Vm options add: -Dspring.profiles.active=local,dev