如何从Spring应用程序连接Redis主机服务器

时间:2019-07-15 09:51:44

标签: java spring redis

我是新来的Redis。如何从Spring应用程序连接Redis主机。

我添加了Spring -session-data-redis和Spring-data-redis并在pom.xml中添加了核心依赖项。

<div class="jquery-background-video-wrapper" style="background-image: url('https://xxxx.jpg')">
    <video class="jquery-background-video" autoplay muted loop poster="https://xxxx.jpg">
        <source src="https://xxxx.mp4" type="video/mp4">
    </video>
    <script>document.getElementById('video-home').style.height = window.innerHeight + 'px';</script>
    <div id="vido-scrollto"></div>
</div>

我收到“无法连接到/192.168.10.14:6379”错误。Redis服务器正在thar服务器中运行。我想要如何连接redis远程服务器以在会话中存储usrename

0 个答案:

没有答案