Could not get a resource from the pool when the springboot project starts redis; nested exception is io. lettuce. core.

Time:2022-5-27

resolvent:

Find your redis installation path:

Start redis server Exe

Could not get a resource from the pool when the springboot project starts redis; nested exception is io. lettuce. core.

After successful startup:

Could not get a resource from the pool when the springboot project starts redis; nested exception is io. lettuce. core.

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 turn off redis when you turn off CMD. At this time, you can use the following methods:

Also open the redis installation path:

Could not get a resource from the pool when the springboot project starts redis; nested exception is io. lettuce. core.

Could not get a resource from the pool when the springboot project starts redis; nested exception is io. lettuce. core.

Press enter to enter the root directory:

Could not get a resource from the pool when the springboot project starts redis; nested exception is io. lettuce. core.

  • Install redis as a Windows service and start it automatically after startup. Solutions:
  • Run redis server –service install redis windows. After the conf command is installed, you can see that redis has been used as a Windows service. However, redis has not been started after the installation. The startup command is as follows:
  • Start command: redis server –service start

The above specific setting steps:

Copy command: redis server –service install redis windows. Conf enter

Then copy the command: redis server –service start enter

After setting successfully, you can close the command window, and then start the project without any error