断弯刀

导航

2018年8月25日 #

CryptographyUtil盐加密

摘要: import org.apache.shiro.crypto.hash.Md5Hash; /** * 加密工具 * @author Administrator * */ public class CryptographyUtil { /** * Md5加密 * @param str * @param salt * @retur... 阅读全文

posted @ 2018-08-25 16:50 断弯刀 阅读(478) 评论(0) 推荐(0) 编辑

InitComponent的使用

摘要: 网页中的数据,有些是不在网页上改变的,像一些个人信息,比如:头像,当前用户名,友情链接等等,每次请求该页面都要重新加载,这样很消耗服务器资源,会降低服务器的性能,这个时候我们可以把这些不变的信息,统一放到application中,当用户登录时候,就加载到application中,当重新加载使用该信息 阅读全文

posted @ 2018-08-25 11:05 断弯刀 阅读(276) 评论(0) 推荐(0) 编辑