iTextPdf 使用 itextpdf 给 PDF 文件加水印, https://github.com/itext/itextpdf Maven 1 2 3 4 5 com.itextpdf itextpdf 5.5.13 Gradle 1 compile group: 'com.itextpdf', name: 'itextpdf', version: '5.5.13'
Read more »

配置SSL证书 由于 Spring Boot 内置了 Tomcat , 故将 Tomcat 服务器的配置写在项目的配置文件 application.yml 中。 在阿里云里可以申请到赛门铁克免费型DV SSL证书, 审核通过后下载的证书有两个文件, 分别是 ***.pfx 和 ***.txt 。 txt文件里面存储的是证书的密码, pfx文件就是证书。 1 2 3 4 5 6 7 server: port: 8443 ssl: enabled: true key-store: # 证书路径 key-store-password: # 证书密码
Read more »

使用 mvn -v 查看 maven 的安装目录 在 Maven 目录中的 conf/settings.xml 中的 mirrors 结点中添加 1 2 3 4 5 6 nexus-aliyun * Nexus aliyun http://maven.aliyun.com/nexus/content/groups/public
Read more »

安装OpenJDK 1 yum install java-11-openjdk 下载Maven 1 wget https://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.6.2/binaries/apache-maven-3.6.2-bin.tar.gz 你也可以从官网复制你要的 Maven 的其他版本的连接 https://maven.apache.org/download.cgi 配置Maven 在 /etc/profile 文件的最下面添加下面的命令并使用 source /etc/profile 命令重新加载
Read more »

下载MySQL yum包 https://dev.mysql.com/downloads/repo/yum/ 1 wget http://repo.mysql.com/mysql80-community-release-el7-1.noarch.rpm 安装软件源 1 rpm -Uvh mysql80-community-release-el7-1.noarch.rpm 安装MySQL服务器 1 yum install mysql-community-server MySQL服务相关命令 1 2 3 4 systemctl start mysqld syste
Read more »

使用命令行生成SSH密钥: 1 2 cd ~/.ssh ssh-keygen -t rsa -b 4096 -C "www.hdvsyu.com" -t 密钥类型有 dsa、ecdsa、 ed25519、 rsa 等可选 -b 指定密钥长度 -C 备注 1 2 3 4 Generating public/private rsa key pair. Enter file in which to save the key (/Users/hdvsyu/.ssh/id_rsa): # 指定密钥的文件名, 默认使用id_rsa Enter passphrase (empty for
Read more »

A registration card number of PAT consists of 4 parts: * the 1st letter represents the test level, namely, T for the top level, A for advance and B for basic; * the 2nd - 4th digits are the test site number, ranged from 101 to 999; * the 5th - 10th digits give the test date, in the form of yymmd
Read more »

2004 年 7 月,谷歌在硅谷的 101 号公路边竖立了一块巨大的广告牌(如下图)用于招聘。内容超级简单,就是一个以 .com 结尾的网址,而前面的网址是一个 10 位素数,这个素数是自然常数 e 中最早出现的 10 位连续数字。能找出这个素数的人,就可以通过访问谷歌的这个网站进入招聘流程的下一步。 自然常数 e 是一个著名的超越数,前面若干位写出来是这样的:e = 2.7182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274274663919
Read more »

In July 2004, Google posted on a giant billboard along Highway 101 in Silicon Valley (shown in the picture below) for recruitment. The content is super-simple, a URL consisting of the first 10-digit prime found in consecutive digits of the natural constant e. The person who could find this prime num
Read more »

The “Hamilton cycle problem” is to find a simple cycle that contains every vertex in a graph. Such a cycle is called a “Hamiltonian cycle”. In this problem, you are supposed to tell if a given cycle is a Hamiltonian cycle. Input Specification: Each input file contains one test case. For each case,
Read more »
0%