This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.github.jhipster.config.JHipsterConstants; | |
import org.aspectj.lang.JoinPoint; | |
import org.aspectj.lang.ProceedingJoinPoint; | |
import org.aspectj.lang.annotation.AfterThrowing; | |
import org.aspectj.lang.annotation.Around; | |
import org.aspectj.lang.annotation.Aspect; | |
import org.aspectj.lang.annotation.Pointcut; | |
import org.slf4j.Logger; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
明文显示邮箱: | |
https://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&[email protected] | |
使用QQ邮箱生成的代码: | |
<a target="_blank" href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=lO7t_Mvg89Ty__z59f34uvf7_Q" style="text-decoration:none;"><img src="http://rescdn.qqmail.com/zh_CN/htmledition/images/function/qm_open/ico_mailme_02.png"/></a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import org.apache.commons.net.ftp.FTPClient; | |
import org.apache.commons.net.ftp.FTPFile; | |
import org.apache.log4j.Logger; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.在web.xml中添加监听 | |
<listener> | |
<listener-class>com......listener.InitLibraryPath</listener-class> | |
</listener> | |
2.读取src/main/resources/sigar目录下的所有内容 | |
import javax.servlet.ServletContextEvent; | |
import javax.servlet.ServletContextListener; | |
import com.google.common.io.Resources; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
一个JWT实际上就是一个字符串,它由三部分组成,头部、载荷与签名。 | |
头部用于描述关于该JWT的最基本的信息,例如其类型以及签名所用的算法等。这也可以被表示成一个JSON对象。 | |
例如:{"typ": "JWT","alg": "HS256"},对其进行base64编码后得到eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9。 | |
载荷也用json表示: | |
{ | |
"iss": "John Wu JWT", | |
"iat": 1441593502, | |
"exp": 1441594722, | |
"aud": "www.example.com", | |
"sub": "[email protected]", |
NewerOlder