日韩成人免费在线_国产成人一二_精品国产免费人成电影在线观..._日本一区二区三区久久久久久久久不

當(dāng)前位置:首頁 > 科技  > 軟件

如何通過 REST API 和 Spring MVC 提取電視節(jié)目詳細(xì)信息?

來源: 責(zé)編: 時間:2023-10-18 17:58:44 296觀看
導(dǎo)讀表述性狀態(tài)傳輸 (REST)是一種架構(gòu)風(fēng)格,它定義了一組用于創(chuàng)建 Web 服務(wù)的約束。REST API 是一種無需任何處理即可簡單靈活地訪問 Web 服務(wù)的方式。Spring MVC是一個用于構(gòu)建 Web 應(yīng)用程序的 Web MVC 框架。它是一個與 s

QBO28資訊網(wǎng)——每日最新資訊28at.com

表述性狀態(tài)傳輸 (REST)是一種架構(gòu)風(fēng)格,它定義了一組用于創(chuàng)建 Web 服務(wù)的約束。REST API 是一種無需任何處理即可簡單靈活地訪問 Web 服務(wù)的方式。QBO28資訊網(wǎng)——每日最新資訊28at.com

Spring MVC是一個用于構(gòu)建 Web 應(yīng)用程序的 Web MVC 框架。它是一個與 spring boot、spring-security 等相同的 spring 模塊。術(shù)語 MVC 代表模型-視圖-控制器架構(gòu)。REST API 調(diào)用如今被廣泛用于獲取各種信息,例如天氣、郵政編碼、secret、大學(xué)詳細(xì)信息等.QBO28資訊網(wǎng)——每日最新資訊28at.com

在本文中,讓我們嘗試通過以下方式獲取電視連續(xù)劇詳細(xì)信息QBO28資訊網(wǎng)——每日最新資訊28at.com

http://api.tvmaze.com/search/shows?q=<任何電視連續(xù)劇名稱>

例子:

https://api.tvmaze.com/search/shows?q=mahabharata


QBO28資訊網(wǎng)——每日最新資訊28at.com

JSON 輸出:

[    {        "score": 0.54483813,        "show": {            "id": 60856,            "url": "https://www.tvmaze.com/shows/60856/the-mahabharata",            "name": "The Mahabharata",            "type": "Scripted",            "language": "English",            "genres": [],            "status": "Ended",            "runtime": null,            "averageRuntime": null,            "premiered": "1990-03-10",            "ended": "1990-03-24",            "officialSite": null,            "schedule": {                "time": "",                "days": []            },            "rating": {                "average": null            },            "weight": 5,            "network": {                "id": 269,                "name": "Star Plus",                "country": {                    "name": "India",                    "code": "IN",                    "timezone": "Asia/Kolkata"                },                "officialSite": null            },            "webChannel": null,            "dvdCountry": null,            "externals": {                "tvrage": null,                "thetvdb": 213551,                "imdb": "tt0097810"            },            "image": {                "medium": "https://static.tvmaze.com/uploads/images/medium_portrait/398/996547.jpg",                "original": "https://static.tvmaze.com/uploads/images/original_untouched/398/996547.jpg"            },            "summary": null,            "updated": 1646508699,            "_links": {                "self": {                    "href": "https://api.tvmaze.com/shows/60856"                },                "previousepisode": {                    "href": "https://api.tvmaze.com/episodes/2289706"                }            }        }    },    {        "score": 0.40868765,        "show": {            "id": 5016,            "url": "https://www.tvmaze.com/shows/5016/mahabharat",            "name": "Mahabharat",            "type": "Scripted",            "language": "Hindi",            "genres": [                "Drama",                "History"            ],            "status": "Ended",            "runtime": 20,            "averageRuntime": 20,            "premiered": "2013-09-16",            "ended": "2014-08-16",            "officialSite": "http://www.hotstar.com/#!/mahabharat-435-s",            "schedule": {                "time": "20:30",                "days": [                    "Monday",                    "Tuesday",                    "Wednesday",                    "Thursday",                    "Friday",                    "Saturday",                    "Sunday"                ]            },            "rating": {                "average": null            },            "weight": 37,            "network": {                "id": 269,                "name": "Star Plus",                "country": {                    "name": "India",                    "code": "IN",                    "timezone": "Asia/Kolkata"                },                "officialSite": null            },            "webChannel": null,            "dvdCountry": null,            "externals": {                "tvrage": 46350,                "thetvdb": 273350,                "imdb": "tt3212600"            },            "image": {                "medium": "https://static.tvmaze.com/uploads/images/medium_portrait/21/54241.jpg",                "original": "https://static.tvmaze.com/uploads/images/original_untouched/21/54241.jpg"            },            "summary": "<p>The story of the throne of Hastinapura, the kingdom ruled by the Kuru clan. The two collateral branches of the family that participate in the struggle of the throne of Hastinapura are the Kaurava and the Pandava. Although the Kaurava is the senior branch of the family, Duryodhana, the eldest Kaurava, is younger than Yudhisthira, the eldest Pandava. Both Duryodhana and Yudhisthira claim to be first in line to inherit the throne. The struggle culminates in the great battle of Kurukshetra, in which the Pandavas are ultimately victorious. The battle produces complex conflicts of kinship and friendship, instances of family loyalty and duty taking precedence over what is right, as well as the converse.</p>",            "updated": 1604823863,            "_links": {                "self": {                    "href": "https://api.tvmaze.com/shows/5016"                },                "previousepisode": {                    "href": "https://api.tvmaze.com/episodes/314287"                }            }        }    },    {        "score": 0.38368216,        "show": {            "id": 16607,            "url": "https://www.tvmaze.com/shows/16607/mahabharat",            "name": "Mahabharat",            "type": "Scripted",            "language": "Hindi",            "genres": [                "Drama"            ],            "status": "Ended",            "runtime": 45,            "averageRuntime": 45,            "premiered": "1988-10-02",            "ended": "1990-07-15",            "officialSite": null,            "schedule": {                "time": "",                "days": [                    "Sunday"                ]            },            "rating": {                "average": null            },            "weight": 24,            "network": {                "id": 1093,                "name": "DD National",                "country": {                    "name": "India",                    "code": "IN",                    "timezone": "Asia/Kolkata"                },                "officialSite": null            },            "webChannel": null,            "dvdCountry": null,            "externals": {                "tvrage": null,                "thetvdb": 84349,                "imdb": "tt0158417"            },            "image": {                "medium": "https://static.tvmaze.com/uploads/images/medium_portrait/55/138442.jpg",                "original": "https://static.tvmaze.com/uploads/images/original_untouched/55/138442.jpg"            },            "summary": "<p><b>Mahabharat</b> is a successful Indian television series based on the ancient Indian epic Mahabharata. The 94-episode series originally ran from 1988 to 1990. It was produced by B. R. Chopra and directed by his son, Ravi Chopra.</p>",            "updated": 1573325769,            "_links": {                "self": {                    "href": "https://api.tvmaze.com/shows/16607"                },                "previousepisode": {                    "href": "https://api.tvmaze.com/episodes/762035"                }            }        }    }]


QBO28資訊網(wǎng)——每日最新資訊28at.com

使用Spring框架,讓我們嘗試提取REST API并將其呈現(xiàn)在頁面上。QBO28資訊網(wǎng)——每日最新資訊28at.com

項目結(jié)構(gòu):

QBO28資訊網(wǎng)——每日最新資訊28at.com

pom.xml%20編寫:


QBO28資訊網(wǎng)——每日最新資訊28at.com

<project%20xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0%20 http://maven.apache.org/maven-v4_0_0.xsd">%20 <modelVersion>4.0.0</modelVersion>%20 <groupId>com.TVShow.TVShow_Rest_API</groupId>%20 <artifactId>TVShow_Rest_API</artifactId>%20 <packaging>war</packaging>%20 <version>0.0.1-SNAPSHOT</version>%20 <name>TVShow</name>%20 <url>http://maven.apache.org</url>%20 <properties>%20 <failOnMissingWebXml>false</failOnMissingWebXml>%20 <spring-version>5.1.0.RELEASE</spring-version>%20 </properties>%20 <dependencies>%20 <!--%20https://mvnrepository.com/artifact/org.springframework/spring-webmvc%20--> <dependency>%20 <groupId>org.springframework</groupId>%20 <artifactId>spring-webmvc</artifactId>%20 <version>${spring-version}</version>%20 </dependency>%20 <!--%20Required%20for%20spring-test%20--> <dependency>%20 <groupId>org.springframework</groupId>%20 <artifactId>spring-test</artifactId>%20 <version>${spring-version}</version>%20 </dependency>%20 <!--%20JSTL%20Dependency%20--> <dependency>%20 <groupId>javax.servlet.jsp.jstl</groupId>%20 <artifactId>javax.servlet.jsp.jstl-api</artifactId>%20 <version>1.2.1</version>%20 </dependency>%20 <dependency>%20 <groupId>taglibs</groupId>%20 <artifactId>standard</artifactId>%20 <version>1.1.2</version>%20 </dependency>%20 <!--%20Servlet%20Dependency%20--> <dependency>%20 <groupId>javax.servlet</groupId>%20 <artifactId>javax.servlet-api</artifactId>%20 <version>3.1.0</version>%20 <scope>provided</scope>%20 </dependency>%20 <!--%20JSP%20Dependency%20--> <dependency>%20 <groupId>javax.servlet.jsp</groupId>%20 <artifactId>javax.servlet.jsp-api</artifactId>%20 <version>2.3.1</version>%20 <scope>provided</scope>%20 </dependency>%20 <!--%20As%20REST%20API%20is%20extracted,%20this%20is%20required%20--> <dependency>%20 <groupId>com.google.code.gson</groupId>%20 <artifactId>gson</artifactId>%20 <version>2.8.6</version>%20 </dependency>%20 <dependency>%20 <groupId>commons-io</groupId>%20 <artifactId>commons-io</artifactId>%20 <version>2.5</version>%20 </dependency>%20 <dependency>%20 <groupId>junit</groupId>%20 <artifactId>junit</artifactId>%20 <version>4.12</version>%20 <scope>test</scope>%20 </dependency>%20 </dependencies>%20 <build>%20 <finalName>TVShow</finalName>%20 <sourceDirectory>src/main/java</sourceDirectory>%20 <plugins>%20 <plugin>%20 <artifactId>maven-compiler-plugin</artifactId>%20 <version>3.5.1</version>%20 <configuration>%20 <source>1.8</source>%20 <target>1.8</target>%20 </configuration>%20 </plugin>%20 <plugin>%20<groupId>org.apache.maven.plugins</groupId>%20<artifactId>maven-war-plugin</artifactId>%20<version>3.3.2</version>%20</plugin>%20 <plugin>%20 <groupId>org.codehaus.mojo</groupId>%20 <artifactId>tomcat-maven-plugin</artifactId>%20 <version>1.0-beta-1</version>%20 </plugin>%20 </plugins>%20 </build>%20</project>

 index.jsp%20編寫:

這是項目部署到tomcat時渲染的頁面QBO28資訊網(wǎng)——每日最新資訊28at.com

<!DOCTYPE%20html>%20<html%20lang="en">%20<head>%20 <meta%20charset="utf-8">%20 <meta%20http-equiv="X-UA-Compatible"%20content="IE=edge">%20 <meta%20name="viewport"%20content="width=device-width,%20initial-scale=1">%20 <title>TVShow</title>%20 <link%20rel="stylesheet"%20>%20 <script%20src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>%20 <script%20src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>%20 //%20for%20making%20the%20page%20styles%20are%20applied%20 <style%20type="text/css">%20 .main-form,%20.profile-area%20{%20 width:%20500px;%20 }%20 .main-form%20{%20 margin:%2050px%20auto%200px;%20 }%20 .profile-area%20{%20 margin:%2010px%20auto;%20 }%20 .main-form%20section,%20.profile-area%20section%20{%20 margin-bottom:%2015px;%20 background:%20#097969;%20 box-shadow:%200px%202px%202px%20rgba(0,%200,%200,%200.3);%20 color:%20white;%20 }%20 .main-form%20section%20{%20 padding:%2030px;%20 }%20 .profile-area%20section%20{%20 padding:%2030px%2030px%2030px;%20 }%20 .profile-area%20section%20>%20div%20{%20 text-align:%20center;%20 }%20 .main-form%20h3%20{%20 margin:%200%200%2015px;%20 }%20 .form-control,%20.btn%20{%20 min-height:%2038px;%20 border-radius:%202px;%20 }%20 .btn%20{%20 font-size:%2015px;%20 font-weight:%20bold;%20 }%20 .hideElement%20{%20 display:%20none;%20 }%20 </style>%20</head>%20<body>%20<div%20class="main-form"%20id="main-form">%20 <section>%20 <div%20class="form-group">%20 //%20We%20need%20to%20input%20the%20search%20string%20in%20this%20box%20 <input%20id="searchStr"%20type="text"%20class="form-control"%20placeholder="Enter%20TVShow%20name%20here..."%20required="required">%20 </div>%20 <div%20class="form-group">%20 <button%20onclick="loadData()"%20class="btn%20btn-primary%20btn-block">Find%20TVShow%20Details</button>%20 </div>%20 </section>%20</div>%20<div%20class="profile-area%20hideElement"%20id="profile-area">%20 <section>%20 <div%20id="loader"%20class="hideElement">%20 <div%20class="spinner-border"%20role="status">%20 <span%20class="sr-only">Loading...</span>%20 </div>%20 </div>%20 <div%20id="profile"%20class="hideElement">%20 <br><br>%20 //%20parsed%20json%20object%20details%20are%20displayed%20here%20 <p><strong>TVShowScore%20:%20</strong><span%20id="scores"></span></p>%20 <p><strong>TVShow%20URL%20:%20</strong><span%20id="url"></span></p>%20 <p><strong>IMDB%20:%20</strong><span%20id="imdb"></span></p>%20 </div>%20 </section>%20</div>%20</body>%20<script>%20 function%20loadData()%20{%20 document.getElementById("profile-area").classList.remove("hideElement");%20 document.getElementById("loader").classList.remove("hideElement");%20 document.getElementById("profile").classList.add("hideElement");%20 var%20searchStr%20=%20document.getElementById("searchStr").value;%20 if(searchStr%20!=%20""%20&&%20searchStr%20!=%20null%20)%20{%20 var%20xhttp%20=%20new%20XMLHttpRequest();%20 xhttp.onreadystatechange%20=%20function()%20{%20 if%20(this.readyState%20==%204%20&&%20this.status%20==%20200)%20{%20 var%20jsonResponse%20=%20JSON.parse(this.responseText);%20 document.getElementById("scores").innerHTML%20=%20jsonResponse.scores;%20 document.getElementById("url").innerHTML%20=%20jsonResponse.url;%20 document.getElementById("imdb").innerHTML%20=%20jsonResponse.imdb;%20 document.getElementById("loader").classList.add("hideElement");%20 document.getElementById("profile").classList.remove("hideElement");%20 }%20 };%20 //%20GET%20method%20which%20redirects%20the%20jsp%20to%20connect%20to%20 //%20the%20servlet%20with%20the%20search%20string%20 xhttp.open("GET",%20"getTVShowDetailsBySearchString?searchStr="+%20searchStr,%20true);%20 xhttp.send();%20 console.log("done");%20 }%20else%20{%20 console.log("Enter%20search%20string%20to%20check...")%20 }%20 }%20</script>%20</html>-----------------------------------?著作權(quán)歸作者所有:來自51CTO博客作者demo007x的原創(chuàng)作品,請聯(lián)系作者獲取轉(zhuǎn)載授權(quán),否則將追究法律責(zé)任如何通過%20REST%20API%20和%20Spring%20MVC%20提取電視節(jié)目詳細(xì)信息?https://blog.51cto.com/demo007x/7917153

輸出:

QBO28資訊網(wǎng)——每日最新資訊28at.com

在輸入框中輸入任何電視節(jié)目名稱后,我們將獲得以下詳細(xì)信息。QBO28資訊網(wǎng)——每日最新資訊28at.com

執(zhí)行過程:

從 JSP 頁面,使用搜索字符串調(diào)用“GET”方法,并將其重定向到 Spring Controller 類,其中 REST API URL http://api.tvmaze.com/search/shows?q= 被調(diào)用,它將創(chuàng)建上面給出的 JSON 數(shù)組,從中,我們使用下面的參數(shù):QBO28資訊網(wǎng)——每日最新資訊28at.com


QBO28資訊網(wǎng)——每日最新資訊28at.com

"score", "url" and "imdb" values aloneExample:"score": 0.42338097,    "url": "https://www.tvmaze.com/shows/16607/mahabharat",      "imdb": "tt0158417"

實際上,在這個頁面上,我們只檢索了 TVShowScore、TVShow URL 和 IMDB。但我們可以獲取 JSON 中提供的所有其他詳細(xì)信息。檢索數(shù)據(jù)和解析 JSON 輸出所需的代碼如下。實現(xiàn)流程的重要必要文件QBO28資訊網(wǎng)——每日最新資訊28at.com

AppConfig.java 編寫:

import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.EnableWebMvc; import org.springframework.web.servlet.view.InternalResourceViewResolver; import org.springframework.web.servlet.view.JstlView; @Configuration@EnableWebMvc@ComponentScan(basePackages = { "com.TVShow.TVShow_Rest_API" }) public class AppConfig { 	@Bean	public InternalResourceViewResolver resolver() { 		InternalResourceViewResolver resolver = new InternalResourceViewResolver(); 		resolver.setViewClass(JstlView.class); 		resolver.setPrefix("/"); 		resolver.setSuffix(".jsp"); 		return resolver; 	} }

SpringMvcDispatcherServletInitializer.java:

import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; public class SpringMvcDispatcherServletInitializer extends AbstractAnnotationConfigDispatcherServletInitializer { 	@Override	protected Class<?>[] getRootConfigClasses() { 		return null; 	} 	@Override	protected Class<?>[] getServletConfigClasses() { 		return new Class[] { AppConfig.class }; 	} 	@Override	protected String[] getServletMappings() { 		return new String[] { "/" }; 	} }

TVShowController.java:

import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.HttpURLConnection; import java.URL; import java.util.ArrayList; import java.util.Iterator; import java.util.StringTokenizer; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; @Controllerpublic class TVShowController { 	@RequestMapping("/getTVShowDetailsBySearchString") 	public @ResponseBody	JsonObject getTVShowDetailsBySearchString(String searchStr) throws IOException { 		// According to the search string, JSONArray 		// or JSON Object is constructed. 		// In our case, it is producing JSONArray 		JsonArray jsonArray = new JsonArray(); 		jsonArray = getTVShowDetailsBySearchStr(searchStr); 		JsonObject finalJsonObject = new JsonObject(); 		ArrayList scoreList = new ArrayList(); 		ArrayList showUrlList = new ArrayList(); 		ArrayList showUrlLinks = new ArrayList(); 		ArrayList telecastedList = new ArrayList(); 		ArrayList imdbList = new ArrayList(); 		Iterator<JsonElement> objectIterator = jsonArray.iterator(); 		// Iterating 		while(objectIterator.hasNext()) { 			JsonElement object = objectIterator.next(); 			JsonObject jObj = object.getAsJsonObject(); 			// We have to get the score and 			// replace the special characters 			scoreList.add(jObj.get("score").toString().replaceAll("^/"|/"$", "")); 			// Similarly show 			showUrlList.add(jObj.get("show").toString().replaceAll("^/"|/"$", "")); 		} 				for (int i = 0;i < showUrlList.size();i++) {		 						StringTokenizer jsonTokenizer = new StringTokenizer(showUrlList.get(i).toString(),","); 			String expectedTag = null; 			int idx = 0; 			while (jsonTokenizer.hasMoreTokens()) { 				expectedTag = jsonTokenizer.nextToken(); 				if (expectedTag.contains("url")) { 					showUrlLinks.add(expectedTag.substring(7,expectedTag.length()-1).toString()); 				} 				if (expectedTag.contains("timezone")) { 					telecastedList.add(expectedTag.substring(12,expectedTag.length()-3).toString()); 				} 				if (expectedTag.contains("imdb")) { 					imdbList.add(expectedTag.substring(8,expectedTag.length()-2).toString()); 				} 		} 	} 		finalJsonObject.addProperty("scores", scoreList.toString()); 		finalJsonObject.addProperty("scoresize", scoreList.size()); 		finalJsonObject.addProperty("url", showUrlLinks.toString()); 		finalJsonObject.addProperty("urlsize", showUrlLinks.size()); 		finalJsonObject.addProperty("timezone", telecastedList.toString()); 		finalJsonObject.addProperty("imdb", imdbList.toString()); 		finalJsonObject.addProperty("imdbsize", imdbList.size()); 		// After retrieving the elements, 		// in an object , all are constructed 		return finalJsonObject; 	} 	private JsonArray getTVShowDetailsBySearchStr(String searchString) throws IOException { 		StringBuilder responseData = new StringBuilder(); 		JsonArray jsonArray = null; 		URL url = null; 		// http://api.tvmaze.com/search/shows?q=<searchstring> 		// is the url to access the TV show details 		url = new URL("http://api.tvmaze.com/search/shows?q=" + searchString); 				HttpURLConnection con = (HttpURLConnection) url.openConnection(); 		con.setRequestMethod("GET"); 		con.setRequestProperty("User-Agent", "Mozilla/5.0"); 		int responseCode = con.getResponseCode(); 		System.out.println("/nSending 'GET' request to URL : " + url); 		// System.out.println("Response Code : " + responseCode); 		try (BufferedReader in = new BufferedReader( 				new InputStreamReader(con.getInputStream()))) { 			String line; 			while ((line = in.readLine()) != null) { 				responseData.append(line); 			} 			// It is getting converted to 			// JSONArray by means of below code 			jsonArray = new Gson().fromJson(responseData.toString(), JsonArray.class);	 		} 		return jsonArray; 	} }-----------------------------------?著作權(quán)歸作者所有:來自51CTO博客作者demo007x的原創(chuàng)作品,請聯(lián)系作者獲取轉(zhuǎn)載授權(quán),否則將追究法律責(zé)任如何通過 REST API 和 Spring MVC 提取電視節(jié)目詳細(xì)信息?https://blog.51cto.com/demo007x/7917153

結(jié)論

通過使用 Spring-webmvc,我們可以從 REST API 調(diào)用中獲取詳細(xì)信息。上面就是一個很好的例子。同樣,有很多開源 REST API 調(diào)用可供使用。這意味著我們可以使用它們來檢索數(shù)據(jù)。開源 REST API 調(diào)用的幾個示例。QBO28資訊網(wǎng)——每日最新資訊28at.com

QBO28資訊網(wǎng)——每日最新資訊28at.com

本文鏈接:http://www.www897cc.com/showinfo-26-14001-0.html如何通過 REST API 和 Spring MVC 提取電視節(jié)目詳細(xì)信息?

聲明:本網(wǎng)頁內(nèi)容旨在傳播知識,若有侵權(quán)等問題請及時與本網(wǎng)聯(lián)系,我們將在第一時間刪除處理。郵件:2376512515@qq.com

上一篇: 如何在 TypeScript 中使用類和繼承

下一篇: Python并發(fā)編程:多線程技術(shù)詳解

標(biāo)簽:
  • 熱門焦點
  • 紅魔電競平板評測:大屏幕硬實力

    前言:三年的疫情因為要上網(wǎng)課的原因激活了平板市場,如今網(wǎng)課的時代已經(jīng)過去,大家的生活都恢復(fù)到了正軌,這也就意味著,真正考驗平板電腦生存的環(huán)境來了。也就是面對著這種殘酷的
  • Raft算法:保障分布式系統(tǒng)共識的穩(wěn)健之道

    1. 什么是Raft算法?Raft 是英文”Reliable、Replicated、Redundant、And Fault-Tolerant”(“可靠、可復(fù)制、可冗余、可容錯”)的首字母縮寫。Raft算法是一種用于在分布式系統(tǒng)
  • JavaScript學(xué)習(xí) -AES加密算法

    引言在當(dāng)今數(shù)字化時代,前端應(yīng)用程序扮演著重要角色,用戶的敏感數(shù)據(jù)經(jīng)常在前端進行加密和解密操作。然而,這樣的操作在網(wǎng)絡(luò)傳輸和存儲中可能會受到惡意攻擊的威脅。為了確保數(shù)據(jù)
  • 一篇文章帶你了解 CSS 屬性選擇器

    屬性選擇器對帶有指定屬性的 HTML 元素設(shè)置樣式。可以為擁有指定屬性的 HTML 元素設(shè)置樣式,而不僅限于 class 和 id 屬性。一、了解屬性選擇器CSS屬性選擇器提供了一種簡單而
  • 當(dāng)家的盒馬,加速謀生

    來源 | 價值星球Planet作者 | 歸去來自己&ldquo;當(dāng)家&rdquo;的盒馬,開始加速謀生了。據(jù)盒馬官微消息,盒馬計劃今年開放生鮮供應(yīng)鏈,將其生鮮商品送往食堂。目前,盒馬在上海已經(jīng)與
  • 華為將推出盤古數(shù)字人大模型 可幫助用戶12小時完成數(shù)字人生成

    在今日舉行的2023年華為云數(shù)字文娛AI創(chuàng)新峰會上,華為云全球Marketing與銷售服務(wù)總裁石冀琳表示,華為云將在后續(xù)推出盤古數(shù)字人大模型,可幫助用戶12小
  • 7月4日見!iQOO 11S官宣:“雞血版”驍龍8 Gen2+200W快充加持

    上半年已接近尾聲,截至目前各大品牌旗下的頂級旗艦都已悉數(shù)亮相,而下半年即將推出的頂級旗艦已經(jīng)成為了數(shù)碼圈爆料的主流,其中就包括全新的iQOO 11S系
  • 3699元!iQOO Neo8 Pro頂配版今日首銷:1TB UFS 4.0同價位唯一

    5月23日,iQOO推出了全新的iQOO Neo8系列,包含iQOO Neo8和iQOO Neo8 Pro兩個版本,其中標(biāo)準(zhǔn)版搭載高通驍龍8+,而Pro版更是首發(fā)搭載了聯(lián)發(fā)科天璣9200+旗艦
  • iQOO Neo8 Pro評測:旗艦雙芯加持 最強性能游戲旗艦

    【Techweb評測】去年10月,iQOO推出了一款Neo7手機,該機搭載了聯(lián)發(fā)科天璣9000+,配備獨顯芯片Pro+,帶來了同價位段最佳的游戲體驗,一經(jīng)上市便受到了諸多用
Top 主站蜘蛛池模板: 若尔盖县| 石景山区| 泰州市| 明光市| 海兴县| 富平县| 大埔县| 灵寿县| 汉源县| 蚌埠市| 将乐县| 隆子县| 桐乡市| 沙田区| 鄂温| 宁波市| 清涧县| 杭锦旗| 桓台县| 大化| 临海市| 黔南| 通山县| 当阳市| 岫岩| 琼海市| 舞钢市| 津南区| 富宁县| 阳曲县| 札达县| 平凉市| 和顺县| 沙坪坝区| 南丹县| 介休市| 德昌县| 军事| 黄大仙区| 达拉特旗| 南丹县|