摘要:
http和https的区别? https协议需要到ca申请证书,一般免费证书很少,需要交费。 http是超文本传输协议,信息是明文传输,https 则是具有安全性的ssl加密传输协议。 http和https使用的是完全不同的连接方式用的端口也不一样,前者是80,后者是443。 http的连接很简单, 阅读全文
摘要:
首先新建一个文件夹,并在命令行下运行npm init -y 分别修改以下文件 index.js db.js package.json views目录下的head.ejs foot.ejs article.ejs 运行结果 用postman工具添加文章 然后在浏览器中输入以下的网址 阅读全文
摘要:
1、引入maven 2、自己定义一个java对象 3、常见的用法 阅读全文
摘要:
待爬取的牛客网的实习信息 https://www.nowcoder.com/job/center 首先在Eclipse新建一个maven项目 1、在maven文件中加入以下的代码 2、提取所需要的信息 这里编写CSS规则,有点麻烦,我们可以利用游览器自带的工具,帮助我们快速选择所需要的的元素 比如我 阅读全文
摘要:
引入netty 服务器端代码 阅读全文
摘要:
17. Letter Combinations of a Phone Number Medium Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the 阅读全文
摘要:
public List generateParenthesis(int n) { ArrayList result = new ArrayList(); dfs(result, "", n, n); return result; } /* left and right represents the remaining number of ( and ) that need... 阅读全文
摘要:
Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the s 阅读全文
摘要:
MD5即Message-Digest Algorithm 5(信息-摘要算法5),用于确保信息传输完整一致。是计算机广泛使用的杂凑算法之一(又译摘要算法、哈希算法),主流编程语言普遍已有MD5实现。将数据(如汉字)运算为另一固定长度值,是杂凑算法的基础原理,MD5的前身有MD2、MD3和MD4。 1 阅读全文
摘要:
package com.problem01; import java.util.HashMap; public class Main { public static void main(String[] args) { String s = "abcddbcaa"; System.out.println(longestPalindrome(s)); } public ... 阅读全文