增加加密jar包

parent 1088566a
......@@ -184,6 +184,12 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<!--设备权限加密-->
<dependency>
<groupId>com.cc.utls</groupId>
<artifactId>xzxt_utils</artifactId>
<version>0.0.1</version>
</dependency>
</dependencies>
<build>
......
......@@ -48,5 +48,5 @@ ThreadPool.queueCapacity=10
zhyyPath=/toLogin
#2、刑专子模块
#zhyyPath=http://zhyy.xzxt.nm:7001
qxUrl=http://127.0.0.1:9044
qxUrl=http://xtba.xzxt.hn:9044
......@@ -44,4 +44,4 @@ redis.pass=
zhyyPath=/toLogin
#2、刑专子模块
#zhyyPath=http://zhyy.xzxt.nm:7001
qxUrl=http://127.0.0.1:9044
\ No newline at end of file
qxUrl=http://localhost:9044
\ No newline at end of file
#项目配置文件
#开发环境使用dev,正式环境使用prod
spring.profiles.active=dev
#server.context-path=/demo
\ No newline at end of file
#server.context-path=/demo
#server.servlet.session.cookie.name=mycookies
\ No newline at end of file
......@@ -59,7 +59,7 @@ $(function(){
var projectName = pathName.substring(0, pathName.substr(1).indexOf('/') + 1);
alert(projectName);*/
/*$("#"+ids).find("a").first().after("<img src="+projectName+"/css/BlueCss/images/suo.png title=\"无权限\" style=\"position: absolute; left: 80%; top: 5px;\" />");*/
$("#"+ids).find("a").first().after("<img src=/common/img/suo.png title=\"无权限\" style=\"position: absolute; left: 90%; top: 5px;\" />");
$("#"+ids).find("a").first().after("<img src=static/common/img/suo.png title=\"无权限\" style=\"position: absolute; left: 90%; top: 5px;\" />");
$("#"+ids).find("a").unbind("click");
}
});
......
......@@ -306,6 +306,6 @@
</script>
<!-- 权限机制-->
<div style="" id="perurl" th:text="${session.perurl}"></div>
<script id="scripturlid" src="/common/js/checkurl.js" type="text/javascript"></script>
<script id="scripturlid" src="static/common/js/checkurl.js" type="text/javascript"></script>
</body>
</html>
\ No newline at end of file
package com.founder;
import com.cc.utls.MD5Util;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import static com.cc.utls.MD5Util.MD5;
import static com.cc.utls.MD5Util.generate;
import static com.cc.utls.MD5Util.verify;
@RunWith(SpringRunner.class)
@SpringBootTest
public class XtbaBootApplicationTests {
@Test
public void contextLoads() {
System.out.println(MD5Util.MD5("123456"));
String ss = generate("123456");
System.out.println(generate("123456"));
System.out.println("是否是同一字符串:"+verify("123456",ss));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment