Tag:works

  • Springboot Kafka configuration with permission allows you to avoid detours

    Time:2022-5-10

    spring.kafka.producer.bootstrapServers=192.168.211.54:4988 spring.kafka.producer.properties.sasl.mechanism=PLAIN spring.kafka.producer.properties.security.protocol=SASL_PLAINTEXT spring.kafka.producer.properties.sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username=\”caadmin\” password=\”R5s^[email protected]\”; Or hard coded public static void main(String[] args) throws Exception { try { String topicName = “mytopic”; String key = “key1”; String value = “Value-1”; Properties prop = new Properties(); prop.put(“bootstrap.server”,”localhost:9092″); prop.put(“key.serializer”,”org.apache.kafka.common.serialization.StringSerializer”); prop.put(“value.serializer”,”org.apache.kafka.cpmmon.serialization.StringSerializer”); Producer<String, String> producer = new KafkaProducer<>(prop); ProducerRecord<String, String> record = new ProducerRecord<>(topicName,key,value); producer.send(record); producer.close(); System.out.println(“SimpleProducer […]

  • Svn solves the problem that it cannot view the recent submission log

    Time:2022-5-6

    Phenomenon: when you show log, you can’t see the log up to a few days ago or the log of recent days. The reason is unknown. It feels like you have updated / submitted after modifying the system time resolvent:TortoiseSVN setting log caching cached repositories = > cached repositories, delete the corresponding URL record (tested […]

  • Install mwget

    Time:2022-4-30

    yum install -y openssl openssl-devel bzip2 gcc gcc-c++ intltool python-pip zip unzip wget vim sshpass pip install –upgrade pip pip install –upgrade setuptools pip install cryptography paramiko wget http://jaist.dl.sourceforge.net/project/kmphpfm/mwget/0.1/mwget_0.1.0.orig.tar.bz2 tar -xjvf mwget_0.1.0.orig.tar.bz2 cd mwget_0.1.0.orig ./configure make -j4 make install #Test using mwget to download things mwget -c 8 https://www.baidu.com/favicon.ico linux wget mwget This work adoptsCC […]

  • Install ansible-2.4.2

    Time:2022-4-29

    wget https://releases.ansible.com/ansible/ansible-2.4.2.0.tar.gz tar -zxf ansible-2.4.2.0.tar.gz cd ansible-2.4.2.0 make install #sed -i ‘s/^#host_key_checking = False/host_key_checking = False/g’ /etc/ansible/ansible.cfg ansible This work adoptsCC agreement, reprint must indicate the author and the link to this article :kissing_ closed_ eyes:

  • Uniformly handle the response body in the response

    Time:2022-4-29

    When interacting with the front and back end, it is sometimes necessary to do some unified processing on the objects returned by the interface. At this time, the responsebodyadvice interface can be customized. @ControllerAdvice This work adoptsCC agreement, reprint must indicate the author and the link to this article

  • @The enumeration type values in the requestbody do not match, and an error is reported

    Time:2022-4-28

    @Configuration This work adoptsCC agreement, reprint must indicate the author and the link to this article

  • Installing tcping for Linux

    Time:2022-4-26

    wget -O tcping https://soft.mengclaw.com/Bash/TCP-PING chmod +x tcping ./tcping -d 127.0.0.1 6379 This work adoptsCC agreement, reprint must indicate the author and the link to this article :kissing_ closed_ eyes:

  • [list announcement] the list of winners of national technology MCU RT thread design competition was released~

    Time:2022-4-23

    Dear developersRT thread and national technology jointly launchedNational Technical MCU RT thread design competitionToday, the curtain has finally come to a successful conclusion. The competition attracted nearly 300 developers to sign up. After more than three months of competition, from registration to approval, to development and design, and finally successfully completed their own works. All […]

  • PIP installation is too slow

    Time:2022-4-17

    PIP installation is too slow. You can use the following methods: pip install XXX -i https://pypi.tuna.tsinghua.edu.cn/simple That’s fast This work adoptsCC agreement, reprint must indicate the author and the link to this article

  • Python development interface

    Time:2022-4-15

    https://blog.csdn.net/helloxiaozhe/article… This work adoptsCC agreement, reprint must indicate the author and the link to this article

  • Grpc usage record

    Time:2022-4-14

    Series articles: Grpc usage record Proto use Record that I just entered the pit grpc This work adoptsCC agreement, reprint must indicate the author and the link to this article

  • Java MD5 encryption

    Time:2022-4-13

    package org. fh. util; MD5 This work adoptsCC agreement, reprint must indicate the author and the link to this article