Tag:spring-boot
-
Springboot error cannot resolve org springframework. Data: Spring data redis: 2.2.6 release (summary of dependency problems)
Article catalogue Reason for error reporting: Cause analysis: 1. The Maven path in the idea is wrong, and it does not point to the warehouse set by itself (when the idea is opened, it often points to the default path of Disk C by default), as shown in the figure: 2. Re import dependency is […]
-
Springboot+redisson initial attempt
Redisson is a distributed solution for redis. It encapsulates redis and is often used in distributed locking scenarios.Redis FAQs Cache penetration: there is no cache x value in the program. When a large number of requests obtain a nonexistent x value, because there is no cache, a large number of requests directly access the database, […]
-
How to solve the problem of frequent disconnection of redis’ lettuce connection pool in springboot project
In the springboot project, redis uses the lettuce connection pool. If redis is not used for a long time, it will be disconnected. The connection can be maintained by using netty’s heartbeat mechanism. heartbeat mechanism Heartbeat is a mechanism that the client and server regularly send packets to each other to notify them that they […]
-
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 […]
-
Add the required data to the redis cache when the spring boot project is started
Add the required data to the redis cache when the spring boot project is started In the project, it is inevitable that there will be data such as dictionaries and departments that are used frequently. If the data is retrieved from the database every time, it will inevitably increase the burden of the project. Therefore, […]
-
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 […]
-
Handling of the error message (unable to connect to localhost:6379) when integrating redis cluster startup after springboot upgrade 2.1.8
The previous version of springboot used by the system is relatively low. Redis is integrated and can be used without password. However, due to the needs of the environment, redis needs password verification. Because the system version is too low, it does not support redis password. Therefore, the springboot version is upgraded to 2.1.8, and […]
-
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 […]
-
Springboot notes (III) redis
Redis database **Soul torture: * * didn’t you learn MySQL and save data? Why do you learn another database? Previously, we learned MySQL database, which is a traditional relational database. We can use Mysql to better manage and organize our data. Although in small web applications, only a MySQL + mybatis built-in cache system can […]
-
Summary of two methods of converting Excel to PDF in Java
Hello, Hello, I’m grey ape, a program ape who can write bugs! There are many ways to use tools to convert Excel to PDF. Here I will introduce two common methods to deal with two different use scenarios. Next, I will give you a demonstration in the springboot environment! 1、 Convert PDF using spire Firstly, […]
-
[Part 23] spring boot integrated redis
1.1 INTRODUCTION REmote DIctionary Server(Redis)Is aSalvatore SanfilippoWrittenkey-valueStorage system. RedisIs an open source useANSI CLanguage writing and complianceBSDProtocol, network support, memory based and persistent log typeKey-ValueDatabase, and provide multilingualAPI。 It is often referred to as a data structure server because of the value(value)Can be a string(String), hash(Map), list(list), set(sets)Ordered set(sorted sets)Other types. reidsAdvantages of Unusually fast […]