Commit b2f3b14d by 邓实川

maven仓库优化,测试

parent 8fec6aaa
......@@ -82,6 +82,7 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
<scope>provided</scope>
</dependency>
<!-- <dependency>
    <groupId>org.springframework.boot</groupId>
......@@ -193,17 +194,17 @@
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<!-- Apache shiro -->
<!-- <dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-spring</artifactId>
<version>${shiro.version}</version>
</dependency>
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-ehcache</artifactId>
<version>${shiro.version}</version>
</dependency>
</dependency> -->
<!-- redis starter -->
<!-- <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId>
......@@ -431,6 +432,11 @@
<overwrite>true</overwrite>
</configuration>
</plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
</plugin>
</plugins>
</build>
......
......@@ -2,7 +2,7 @@ package cn.timer.api.utils;
import java.io.UnsupportedEncodingException;
import org.apache.shiro.crypto.hash.SimpleHash;
//import org.apache.shiro.crypto.hash.SimpleHash;
/**
*
......@@ -30,11 +30,11 @@ public class Encrypt {
* @param salt
* @return
*/
public static String md5(String password, String salt) {
Object tokenCredentials = new SimpleHash("md5", password, salt, 2).toHex();
return (String) tokenCredentials;
}
// public static String md5(String password, String salt) {
//
// Object tokenCredentials = new SimpleHash("md5", password, salt, 2).toHex();
// return (String) tokenCredentials;
// }
public static String myEncode(String str) throws UnsupportedEncodingException {
byte[] strBytes = str.getBytes("utf-8");
......
......@@ -4,7 +4,7 @@ import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import org.apache.shiro.crypto.hash.SimpleHash;
//import org.apache.shiro.crypto.hash.SimpleHash;
/**
*
......@@ -16,10 +16,10 @@ import org.apache.shiro.crypto.hash.SimpleHash;
*/
public class Md5 {
public static String md5password(String name, String password) {
Object tokenCredentials = new SimpleHash("md5", password, name, 56).toHex();
return (String) tokenCredentials;
}
// public static String md5password(String name, String password) {
// Object tokenCredentials = new SimpleHash("md5", password, name, 56).toHex();
// return (String) tokenCredentials;
// }
// 写一个md5加密的方法
public static String md5(String plainText) {
......
......@@ -104,8 +104,9 @@ info:
encoding: '@project.build.sourceEncoding@'
java:
version: '@java.version@'
git:
mode: full
##############################
# mybatis-plus
mybatis-plus:
mapper-locations: classpath:mapping/**/*Mapper.xml # dao到xml文件映射
......
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