Tag:java
-
The 20th social recruitment Java post (byte + Ali + didi) was summarized and finally got Didi’s offer on three sides
Today, I’d like to share the social recruitment experience shared by a netizen of 20 years. The content is very detailed. If you don’t have time to read it in detail for the time being, you can click on a collection and like it first. Coordinate Beijing, interviewed byte, Ali, didi and other companies, and […]
-
How does spring data redis switch between jedis and lattice?
Hello, I’m codinglong! When we learn about a new technology, we generally follow a learning process: what is this? What can you do? How do I use it? What principle? When you want to understand this technology, the first choice is to look at the official website, because its introduction is the most accurate. After […]
-
Learn how zookeeper implements distributed locks
When using multithreaded programming in Java, it is necessary to consider the correctness of the program execution results in the multithreaded environment and whether the desired results are achieved. Therefore, it is necessary to introduce locks when operating shared resources. Shared resources can only be operated by one thread at a time. Java provides a […]
-
Redis multi-level cache
1、 Multilevel cache 1. traditional caching scheme After the request arrives at tomcat, first get the cache from redis, and if it does not hit, get the cache from MySQL 2. multi level cache scheme The number of concurrent requests of Tomcat is much smaller than that of redis, so Tomcat will become a bottleneck […]
-
Baidu Interviewer: I have to ask about redis
Years ago, the company had 30 + candidates for Java positions. After the interview, we found several kinds of almost impossible situations. It really can’t be true anymore… 1. I have mastered a lot of new technologies, but the basic ones are in a mess. 2. I have worked for many years and never learned […]
-
Introduction notes to redis
Article directory Redis installation Redis startup Key operations in redis Redis data type 1. redis string (string) 2. redis list 3. Redis set 4. Redis hash 5. Redis ordered set Zset (sorted set) 6.Bitmaps 7.HyperLogLog 8.Geospatial 9. flow Redis publishing and subscription Redis transaction definition 1.Multi、Exec、discard 2. transaction error handling 3.watch key [key …] 4.unwatch […]
-
Java project: personal blog system (front and back end separation +java+vue+springboot+ssm+mysql+maven+redis)
Source code access: blog home page “resources” to download! 1、 Project brief The functions of the system include: article display, popular articles, article classification, tag cloud user login comments, anonymous comment user comments, anonymous comment management, article publishing, article management, article data statistics, etc 2、 Project operation Environment configuration: jdkl 8 + Tomcats . 5 […]
-
Java eclipse method for importing existing projects
When we learn Java, we often use project files. Sometimes, it is packaged into project files. This is relatively simple. Sometimes, it is necessary to import project files. Then, how do we import project files? Let’s take a look at the specific operation with Xiaobian! Method: 1. First of all, I have only one project […]
-
Solve the problem of springboot redis command timed out
After accessing redis, springboot found that the connection would timeout command timed out after a certain period of time. After reading many articles on the Internet, it was said that the timeout would be set. In fact, no matter how long you set it, it would still timeout. Later, I thought it should have nothing […]
-
Springboot distributed session sharing
1、 In distributed development, the traditional method of nginx load balancing is to manually save the session to redis 1. common practices redis The client initiates a request. After the request reaches nginx, nginx forwards it to tomcata, and then tomcata saves a copy of data (redis) to the session. Next time, another request is […]
-
Could not get a resource from the pool when the springboot project starts redis; nested exception is io. lettuce. core.
resolvent: Find your redis installation path: Start redis server Exe After successful startup: Restart project resolution. ———————————————————————->Here’s the point:<——————————————————————- Here, if you close the redis command window, the project console will report an error. If you restart the project, the same error will be reported at the beginning, The reason is: It is inconvenient to […]
-
Redis Client On Error: Error: write ECONNABORTED Config right
Solve the redis client on error: error: write econnaborted config rightwe Problem Description: Solution: 1. First, check whether the firewall of Linux is turned on Turn off the firewall [[email protected]]# systemctl stop firewalld.service Open 6379 port number [[email protected]]# sudo firewall-cmd –zone=public –add-port=6379/tcp –permanent success [[email protected]]# sudo firewall-cmd –reload success 2. Check whether the redis startup […]