久久久精品一区ed2k-女人被男人叉到高潮的视频-中文字幕乱码一区久久麻豆樱花-俄罗斯熟妇真实视频

SpringBoot中怎么實現(xiàn)共享Session-創(chuàng)新互聯(lián)

本篇文章為大家展示了SpringBoot中怎么實現(xiàn)共享Session,內(nèi)容簡明扼要并且容易理解,絕對能使你眼前一亮,通過這篇文章的詳細介紹希望你能有所收獲。

創(chuàng)新互聯(lián)公司-成都網(wǎng)站建設(shè)公司,專注網(wǎng)站建設(shè)、成都網(wǎng)站制作、網(wǎng)站營銷推廣,空間域名,網(wǎng)頁空間,網(wǎng)站改版維護有關(guān)企業(yè)網(wǎng)站制作方案、改版、費用等問題,請聯(lián)系創(chuàng)新互聯(lián)公司。

一、創(chuàng)建項目并導入依賴

<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-redis-reactive</artifactId></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-security</artifactId></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency><dependency><groupId>org.springframework.session</groupId><artifactId>spring-session-data-redis</artifactId></dependency>

二、相關(guān)配置和代碼

Application.properies

spring.redis.database=0spring.redis.password=fernfeispring.redis.host=192.168.21.130spring.redis.port=6379server.port=8080

Controller層

三、打包測試

雙擊打包,注意打包時把test跳過,點那個閃電就可以跳過測試

在cmd中運行第一個項目

使用新版redis必須導入security,security訪問項目時需要登陸,用戶名user密碼

控制臺復制

再在cmd運行第二個項目

上述內(nèi)容就是SpringBoot中怎么實現(xiàn)共享Session,你們學到知識或技能了嗎?如果還想學到更多技能或者豐富自己的知識儲備,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道。

分享題目:SpringBoot中怎么實現(xiàn)共享Session-創(chuàng)新互聯(lián)
標題URL:http://sd-ha.com/article24/dghece.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供做網(wǎng)站、微信小程序、全網(wǎng)營銷推廣、網(wǎng)站收錄、網(wǎng)頁設(shè)計公司、網(wǎng)站內(nèi)鏈

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站優(yōu)化排名