Compare commits
5 Commits
Author | SHA1 | Date |
---|---|---|
chen | 9b2240cbd3 | 3 years ago |
chen | 43d91b09f1 | 3 years ago |
chen | cf7a4a3ee9 | 3 years ago |
chen | 5b7353f2b3 | 3 years ago |
yuqin | 0b532797cb | 4 years ago |
12 changed files with 105 additions and 68 deletions
@ -0,0 +1,31 @@ |
|||||||
|
package com.msdw.tms.util; |
||||||
|
|
||||||
|
import java.security.MessageDigest; |
||||||
|
import java.security.NoSuchAlgorithmException; |
||||||
|
|
||||||
|
public final class MD5 { |
||||||
|
|
||||||
|
public static String encrypt(String strSrc) { |
||||||
|
try { |
||||||
|
char hexChars[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', |
||||||
|
'9', 'a', 'b', 'c', 'd', 'e', 'f' }; |
||||||
|
byte[] bytes = strSrc.getBytes(); |
||||||
|
MessageDigest md = MessageDigest.getInstance("MD5"); |
||||||
|
md.update(bytes); |
||||||
|
bytes = md.digest(); |
||||||
|
int j = bytes.length; |
||||||
|
char[] chars = new char[j * 2]; |
||||||
|
int k = 0; |
||||||
|
for (int i = 0; i < bytes.length; i++) { |
||||||
|
byte b = bytes[i]; |
||||||
|
chars[k++] = hexChars[b >>> 4 & 0xf]; |
||||||
|
chars[k++] = hexChars[b & 0xf]; |
||||||
|
} |
||||||
|
return new String(chars); |
||||||
|
} catch (NoSuchAlgorithmException e) { |
||||||
|
e.printStackTrace(); |
||||||
|
throw new RuntimeException("MD5加密出错!!+" + e); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -1,52 +0,0 @@ |
|||||||
server.port=9090 |
|
||||||
server.servlet.context-path=/evaluation |
|
||||||
|
|
||||||
#\u6B63\u5F0F\u6570\u636E\u5E93\u8FDE\u63A5 |
|
||||||
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/huoran?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai |
|
||||||
spring.datasource.username=root |
|
||||||
spring.datasource.password=HeHai.3 |
|
||||||
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver |
|
||||||
|
|
||||||
spring.jackson.default-property-inclusion=non_null |
|
||||||
|
|
||||||
# \u8FD9\u4E2A\u914D\u7F6E\u4F1A\u5C06\u6267\u884C\u7684sql\u6253\u5370\u51FA\u6765\uFF0C\u5728\u5F00\u53D1\u6216\u6D4B\u8BD5\u7684\u65F6\u5019\u53EF\u4EE5\u7528 |
|
||||||
mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl |
|
||||||
mybatis-plus.mapper-locations=classpath:/mapper/**/*.xml |
|
||||||
mybatis-plus.global-config.db-config.id-type=auto |
|
||||||
mybatis-plus.global-config.db-config.logic-delete-field=is_del |
|
||||||
mybatis-plus.global-config.db-config.logic-delete-value=0 |
|
||||||
mybatis-plus.global-config.db-config.logic-not-delete-value=1 |
|
||||||
|
|
||||||
tms.thread.core-size=20 |
|
||||||
tms.thread.max-size=200 |
|
||||||
tms.thread.keep-alive-time=10 |
|
||||||
|
|
||||||
#redis\u914D\u7F6E |
|
||||||
spring.redis.database=0 |
|
||||||
spring.redis.host=127.0.0.1 |
|
||||||
spring.redis.password=HeHai.6 |
|
||||||
spring.redis.port=6379 |
|
||||||
spring.redis.timeout=3000 |
|
||||||
spring.redis.jedis.pool.max-idle=500 |
|
||||||
spring.redis.jedis.pool.min-idle=50 |
|
||||||
spring.redis.jedis.pool.max-active=2000 |
|
||||||
spring.redis.jedis.pool.max-wait=1000 |
|
||||||
|
|
||||||
#\u65E5\u5FD7\u7EA7\u522B |
|
||||||
logging.level.jdbc=OFF |
|
||||||
logging.level.jdbc.sqltiming=DEBUG |
|
||||||
logging.level.jdbc.resultsettable=DEBUG |
|
||||||
logging.level.com.yipin.liuwar.mapper=DEBUG |
|
||||||
logging.level.com.yipin.liuwanr.mapper=DEBUG |
|
||||||
|
|
||||||
spring.elasticsearch.rest.uris=http://es-cn-v641e944a0006xtwy.elasticsearch.aliyuncs.com:9200 |
|
||||||
spring.elasticsearch.rest.username=elastic |
|
||||||
spring.elasticsearch.rest.password=1qaz@WSX |
|
||||||
|
|
||||||
# maxFileSize \u5355\u4E2A\u6570\u636E\u5927\u5C0F |
|
||||||
spring.servlet.multipart.maxFileSize = 1024MB |
|
||||||
# maxRequestSize \u662F\u603B\u6570\u636E\u5927\u5C0F |
|
||||||
spring.servlet.multipart.maxRequestSize=10240MB |
|
||||||
|
|
||||||
pagehelper.reasonable=false |
|
||||||
|
|
@ -1,2 +1,2 @@ |
|||||||
#\u9009\u62E9\u6307\u5B9A\u73AF\u5883,\u76EE\u524D\u53EA\u6709\u6D4B\u8BD5\u548C\u6B63\u5F0F\u73AF\u5883 |
#\u9009\u62E9\u6307\u5B9A\u73AF\u5883,\u76EE\u524D\u53EA\u6709\u6D4B\u8BD5\u548C\u6B63\u5F0F\u73AF\u5883 |
||||||
spring.profiles.active=prod |
spring.profiles.active=test |
@ -0,0 +1,42 @@ |
|||||||
|
spring: |
||||||
|
jackson: |
||||||
|
default-property-inclusion: non_null |
||||||
|
datasource: |
||||||
|
# url: jdbc:mysql://www.liuwanr.cn:3306/huoran?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai |
||||||
|
# username: super |
||||||
|
# password: huoran888 |
||||||
|
url: jdbc:mysql://rm-wz9y13wf7u8q8610fwo.mysql.rds.aliyuncs.com:3306/huoran?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai |
||||||
|
username: super |
||||||
|
password: huoran888 |
||||||
|
# url: jdbc:mysql://localhost:3306/msdw_tms?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai |
||||||
|
# username: root |
||||||
|
# password: root |
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver |
||||||
|
# redis: |
||||||
|
# host: www.liuwanr.cn |
||||||
|
# port: 6379 |
||||||
|
# password: huoran |
||||||
|
redis: |
||||||
|
host: 127.0.0.1 |
||||||
|
port: 6379 |
||||||
|
password: |
||||||
|
mybatis-plus: |
||||||
|
configuration: |
||||||
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用 |
||||||
|
mapper-locations: classpath:/mapper/**/*.xml |
||||||
|
global-config: |
||||||
|
db-config: |
||||||
|
id-type: auto |
||||||
|
logic-delete-field: is_del |
||||||
|
logic-delete-value: 0 |
||||||
|
logic-not-delete-value: 1 |
||||||
|
server: |
||||||
|
port: 9090 |
||||||
|
servlet: |
||||||
|
context-path: /evaluation |
||||||
|
|
||||||
|
tms: |
||||||
|
thread: |
||||||
|
core-size: 20 |
||||||
|
max-size: 200 |
||||||
|
keep-alive-time: 10 |
Loading…
Reference in new issue