Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hnxtbaboot
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨亮
hnxtbaboot
Commits
107cee46
Commit
107cee46
authored
Nov 29, 2018
by
chang_chao@founder.com.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加加密jar包
parent
1088566a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
7 deletions
+24
-7
pom.xml
+6
-0
src/main/resources/application-dev.properties
+1
-1
src/main/resources/application-prod.properties
+2
-2
src/main/resources/application.properties
+3
-2
src/main/resources/static/common/js/checkurl.js
+1
-1
src/main/resources/templates/home.html
+2
-1
src/test/java/com/founder/XtbaBootApplicationTests.java
+9
-0
No files found.
pom.xml
View file @
107cee46
...
@@ -184,6 +184,12 @@
...
@@ -184,6 +184,12 @@
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-thymeleaf
</artifactId>
<artifactId>
spring-boot-starter-thymeleaf
</artifactId>
</dependency>
</dependency>
<!--设备权限加密-->
<dependency>
<groupId>
com.cc.utls
</groupId>
<artifactId>
xzxt_utils
</artifactId>
<version>
0.0.1
</version>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
...
...
src/main/resources/application-dev.properties
View file @
107cee46
...
@@ -48,5 +48,5 @@ ThreadPool.queueCapacity=10
...
@@ -48,5 +48,5 @@ ThreadPool.queueCapacity=10
zhyyPath
=
/toLogin
zhyyPath
=
/toLogin
#2、刑专子模块
#2、刑专子模块
#zhyyPath=http://zhyy.xzxt.nm:7001
#zhyyPath=http://zhyy.xzxt.nm:7001
qxUrl
=
http://
127.0.0.1
:9044
qxUrl
=
http://
xtba.xzxt.hn
:9044
src/main/resources/application-prod.properties
View file @
107cee46
...
@@ -44,4 +44,4 @@ redis.pass=
...
@@ -44,4 +44,4 @@ redis.pass=
zhyyPath
=
/toLogin
zhyyPath
=
/toLogin
#2、刑专子模块
#2、刑专子模块
#zhyyPath=http://zhyy.xzxt.nm:7001
#zhyyPath=http://zhyy.xzxt.nm:7001
qxUrl
=
http://127.0.0.1:9044
qxUrl
=
http://localhost:9044
\ No newline at end of file
\ No newline at end of file
src/main/resources/application.properties
View file @
107cee46
#项目配置文件
#项目配置文件
#开发环境使用dev,正式环境使用prod
#开发环境使用dev,正式环境使用prod
spring.profiles.active
=
dev
spring.profiles.active
=
dev
#
server.context-path
=
/demo
#server.context-path=/demo
\ No newline at end of file
#
server.servlet.session.cookie.name
=
mycookies
\ No newline at end of file
src/main/resources/static/common/js/checkurl.js
View file @
107cee46
...
@@ -59,7 +59,7 @@ $(function(){
...
@@ -59,7 +59,7 @@ $(function(){
var projectName = pathName.substring(0, pathName.substr(1).indexOf('/') + 1);
var projectName = pathName.substring(0, pathName.substr(1).indexOf('/') + 1);
alert(projectName);*/
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="+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"
);
$
(
"#"
+
ids
).
find
(
"a"
).
unbind
(
"click"
);
}
}
});
});
...
...
src/main/resources/templates/home.html
View file @
107cee46
...
@@ -306,6 +306,6 @@
...
@@ -306,6 +306,6 @@
</script>
</script>
<!-- 权限机制-->
<!-- 权限机制-->
<div
style=
""
id=
"perurl"
th:text=
"${session.perurl}"
></div>
<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>
</body>
</html>
</html>
\ No newline at end of file
src/test/java/com/founder/XtbaBootApplicationTests.java
View file @
107cee46
package
com
.
founder
;
package
com
.
founder
;
import
com.cc.utls.MD5Util
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.test.context.junit4.SpringRunner
;
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
)
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
@SpringBootTest
public
class
XtbaBootApplicationTests
{
public
class
XtbaBootApplicationTests
{
@Test
@Test
public
void
contextLoads
()
{
public
void
contextLoads
()
{
System
.
out
.
println
(
MD5Util
.
MD5
(
"123456"
));
String
ss
=
generate
(
"123456"
);
System
.
out
.
println
(
generate
(
"123456"
));
System
.
out
.
println
(
"是否是同一字符串:"
+
verify
(
"123456"
,
ss
));
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment