Integrate redis into the project when integrating the springboot framework
It was found that no error was reported after the project was started, but the breakpoint was not entered when using Debugerr mode
Then use the Postman tool to test
"code": 500,
"msg": "处理失败:Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 192.168.89.132:6379",
"data": null
}
It was found that redis could not connect
After investigation, it is found that the ip address configured by redis has changed
vim redis.conf //Enter the redis configuration file
Modify reids configuration ip address
Then press the esc key to exit the editing mode, enter: wq to save and exit.