# util **Repository Path**: creat/util ## Basic Information - **Project Name**: util - **Description**: 萨达 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-07-20 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README <<<<<<< HEAD # springboot-shiro ## chapter00 ## [chapter01](chapter01/README.md) springboot webmvc 集成环境 ## [chapter02](chapter02/README.md) 支持jsp页面 ## [chapter03](chapter03/README.md) 鉴权(登录/退出) ## [chapter04](chapter04/README.md) Redis 存储 session 1. 集成redis 2. 实现CachingSessionDAO, 从Redis 读写 session ## [chapter05](chapter05/README.md) 共享 session 1. 反向代理 2. 。。。 ## 更新 ### 2016-7-28 1. 增加redis 2. ## 参考 1. spring-boot reference http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/ 2. spring boot 中文参考指南 https://qbgbook.gitbooks.io/spring-boot-reference-guide-zh/content/ ======= http://www.cnblogs.com/heben/p/6077323.html >>>>>>> branch 'master' of https://gitee.com/creat/util.git <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% out.print("测试 Web工程的 java.library.path 路径

"); String path = System.getProperty("java.library.path"); if(path == null || path.trim().length() <= 0){ out.print("没有配置 java.library.path 路径"); }else{ String[] paths = path.split(";"); for(String p:paths){ out.print(p + "
"); } } %> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="net.netca.pki.*"%> <% out.println("测试在Web容器下,计算Hash运算。"); int algo = Hash.SHA256; Hash hash = null; byte[] data = "123".getBytes("UTF-8"); try { hash = new Hash(algo); hash.update(data); byte[] md = hash.doFinal(); String hashVal = net.netca.pki.Util.HexEncode(true, md); out.print("hashVal = " + hashVal); } catch (Exception e) { out.print(e.getMessage()); } finally { if (hash != null) { hash.free(); } } %>