Tag:sender

  • Docker installation and configuration gitlab

    Time:2021-10-23

    1、 Installing gitlab docker run -d -h git.test.com -p 80:80 -p 443:443 -p 22:22 -v /www/wwwroot/git.test.com/gitlab/config:/etc/gitlab:rw -v /www/wwwroot/git.test.com/gitlab/data:/var/opt/gitlab:rw -v /www/wwwroot/git.test.com/gitlab/logs:/var/log/gitlab:rw -v /www/server/panel/vhost/cert/git.test.com:/gitlab_ssl:ro –restart=always –name server-gitlab gitlab/gitlab-ce:latest 2、 Gitlab enable SSL Enter container docker exec -it server-gitlab /bin/bash Modify the configuration file: VIM / etc / gitlab / gitlab.rb external_url “https://git.test.com”    nginx[‘enable’] = true nginx[‘redirect_http_to_https’] […]

  • Spring boot implements mail tasks

    Time:2021-10-12

    Import key jar packages: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> <version>2.2.6.RELEASE</version> </dependency> Add mail configuration in application.properties: #Sender’s mailbox [email protected] #Mailbox key spring.mail.password=nxnoashhoanvdfaf #Mailbox host spring.mail.host=smtp.qq.com #Open the security authentication of QQ mailbox spring.mail.properties.mail.smtp.ssl.enable=true Test the simple mail task in the test class @SpringBootTest class SpringbootShrioApplicationTests { //Import mail implementation class @Autowired JavaMailSenderImpl mailSender; @Test void contextLoads() { […]

  • Rust programming video tutorial (Advanced) – 017_ 1 messaging 1

    Time:2021-10-7

    Video address Headline address:https://www.ixigua.com/i677586170644791348…Station B address:https://www.bilibili.com/video/av81202308/ Source address GitHub address:https://github.com/anonymousGiga/learn_rus… Explanation content 1. One of the main tools for implementing message passing concurrency in rust is the channel. The channel consists of two parts, one is the sender and the other is the receiver. The sender is used to send messages and the receiver is […]

  • Rust programming video tutorial (Advanced) – 017_ 3 messaging 3

    Time:2021-10-6

    Video address Headline address:https://www.ixigua.com/i677586170644791348…Station B address:https://www.bilibili.com/video/av81202308/ Source address GitHub address:https://github.com/anonymousGiga/learn_rus… Explanation content Examples of multiple producers: use std::thread; use std::sync::mpsc; use std::time::Duration; fn main() { let (tx, rx) = mpsc::channel(); let tx1 = mpsc::Sender::clone(&tx);// Use with clone Thread:: spawn (move | {// the first sender thread let vals = vec![ String::from(“hi”), String::from(“from”), String::from(“the”), String::from(“thread”), ]; […]

  • Simple application of redis

    Time:2021-9-14

    Spring boot integrates redis //Import dependency <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> //File configuration spring: redis: host: 127.0.0.1 port: 6379 password: root //Write your own redistemplate package com.shuaikb.config; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.PropertyAccessor; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.jsontype.impl.LaissezFaireSubTypeValidator; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.redis.connection.RedisConnectionFactory; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer; import org.springframework.data.redis.serializer.StringRedisSerializer; @Configuration public class RedisConfig { @Bean public RedisTemplate<String, Object> […]

  • Socket.io quick start

    Time:2021-7-31

    1、 Basic concepts Socket.IOIt is a real-time application framework based on node.js. It is widely used in instant messaging, notification and message push, real-time analysis and other scenarios. Websocket comes from the growing demand for real-time communication in web development. Compared with the polling method based on HTTP, it not only greatly saves the network […]

  • Springboot + rabbitmq uses the message confirmation mechanism, which makes it feel like it has fallen into the pit

    Time:2021-5-10

    This article is included in personal blog: www.chengxy-nds.top Share technology resources and make progress together Recently, the Department called on everyone to organize more technology sharing meetings to activate the company’s technology atmosphere. But I know that TM is just for brushingKPI. However, after all, it’s a good thing. Instead of holding those boring bickering […]

  • Redis learning notes (18) cluster (2)

    Time:2021-4-30

    Replication and failover The nodes in redis cluster are divided into master node and slave node. The master node is used to process slots, while the slave node is used to copy a master node. When the copied master node is offline, it will continue to process command requests instead of the offline master node. […]

  • Redis learning notes (19) publish / subscribe (Part 1)

    Time:2021-3-23

    Redis publish / subscribe (Pub / sub) is a kind of message communication mode: the sender (PUB) sends messages and the subscriber (sub) receives messages. Its publish and subscribe function is composed of publish, subscribe, psubscribe and other commands. By executing the subscribe command, a client can subscribe to one or more channels and become […]

  • —Man Geng – IM chat based on go!!!! )

    Time:2020-12-17

    Welcome to use the community markdown editor to write articles! 1、 Background If you have anything wrong, please leave a message below and point out that it is constantly updated. Recently, the company is transferring from PHP to golang, so this project belongs to the training project. Many things are also feeling the stones and […]

  • Springboot + rabbitmq uses the message confirmation mechanism and feels like it’s in a hole

    Time:2020-10-22

    This article is included in personal blog: www.chengxy-nds.top Sharing technology resources and making progress together Recently, the Department has called on everyone to organize more technology sharing meetings, saying that it is necessary to activate the technical atmosphere of the company. But I have seen through everything for a long time. I know that this […]

  • Classic scene of channel closing

    Time:2020-9-19

    Closure principle A common principle for using go channels is not to turn off the data receiver or multiple sendersAvenue. The general principle is not to close closed channels Error closing ch:=make(chan int,1) go func(ch chan int) { ch Elegant closing Do once means that it can only be executed onceRepeat closing type MyChannel struct […]