Java之品優購課程講義 day08(6)

2021-08-27 04:53:00 字數 1160 閱讀 1645

值型別操作

@autowired

private redistemplate redistemplate; @test

public void setvalue()

@test

public void getvalue()

@test

public void deletevalue()

/*** 提取值

*/ @test

public void getvalue()

/*** 刪除集合中的某乙個值

*/ @test

public void deletevalue()

/*** 刪除整個集合

*/ @test

public void deleteallvalue()

}4.1.1 list型別操作

建立測試類 testlist

(1)右壓棧

/**

* 右壓棧:後新增的物件排在後邊

*/ @test

public void testsetvalue1()

/*** 顯示右壓棧集合

*/ @test

public void testgetvalue1()

執行結果:

[劉備, 關羽, 張飛]

(2)左壓棧

/**

* 左壓棧:後新增的物件排在前邊

*/ @test

public void testsetvalue2()

/*** 顯示左壓棧集合

*/ @test

public void testgetvalue2()

執行結果:

[張飛, 關羽, 劉備]

(3)根據索引查詢元素

/**

* 查詢集合某個元素

*/@test

public void testsearchbyindex()

(4)移除某個元素的值

/**

* 移除集合某個元素

*/ @test

public void testremovebyindex()

Java之品優購課程講義 day01(1)

走進電商 1.1電商行業分析 近年來,中國的電子商務快速發展,交易額連創新高,電子商務在各領域的應用不斷拓展和深化 相關服務業蓬勃發展 支撐體系不斷健全完善 創新的動力和能力 不斷增強。電子商務正在與實體經濟深度融合,進入規模性發展階段,對經濟社會生活的影響不斷增大,正成為我國經濟發展的新引擎。中國...

Java之品優購課程講義 day04(3)

運營商系統登入與安全控制 2.1 需求分析 完成運營商登陸功能 2.1 登陸功能的實現 2.1.1 配置檔案 1 修改 pinyougou manager web 的 pom.xml 新增依賴 org.springframework.security spring security web org....

Java之品優購課程講義 day05(10)

6.3 前端 6.3.1 服務層 1 在 pinyougou shop web 工程建立 uploadservice.js this.uploadfile function transformrequest angular.identity content type undefined,這樣瀏覽器會...