还原系统、更新配置
This commit is contained in:
@@ -31,7 +31,7 @@ public class VipCardController extends OmsController {
|
||||
*/
|
||||
@RequestMapping(value = "/vip/cards", method = RequestMethod.GET)
|
||||
public ResponseDTO findPage(Pagination pagination) {
|
||||
return ResponseDTO.ok().addAttribute("cards",vipCardService.findAll());
|
||||
return ResponseDTO.ok().setPagination(vipCardService.findPage(pagination));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
24
oms/src/main/java/com/ydd/oms/config/shiro/PasswordTest.java
Normal file
24
oms/src/main/java/com/ydd/oms/config/shiro/PasswordTest.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package com.ydd.oms.config.shiro;
|
||||
|
||||
import org.apache.shiro.crypto.hash.SimpleHash;
|
||||
|
||||
public class PasswordTest {
|
||||
public static void main(String[] args) {
|
||||
String password = "123456";
|
||||
String salt = "abcd";
|
||||
|
||||
String hashedPassword = new SimpleHash(
|
||||
"SHA-1",
|
||||
password,
|
||||
salt,
|
||||
4
|
||||
).toString();
|
||||
|
||||
System.out.println("=== 密码生成结果 ===");
|
||||
System.out.println("明文密码: " + password);
|
||||
System.out.println("盐: " + salt);
|
||||
System.out.println("加密后密码: " + hashedPassword);
|
||||
System.out.println("\n=== SQL更新语句 ===");
|
||||
System.out.println("UPDATE sys_admin SET password='" + hashedPassword + "', salt='" + salt + "' WHERE mobile='13800138000';");
|
||||
}
|
||||
}
|
||||
@@ -3,12 +3,12 @@ spring:
|
||||
# url: jdbc:mysql://yingdiandian.mysql.rds.aliyuncs.com:3306/smart_venue?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&serverTimezone=GMT%2b8
|
||||
# username: yingdd
|
||||
# password: Yingdd2015
|
||||
url: jdbc:mysql://127.0.0.1:3306/smart_venue?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&serverTimezone=GMT%2b8&useAffectedRows=true&useSSL=false
|
||||
url: jdbc:mysql://127.0.0.1:3306/smart-venue?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&serverTimezone=GMT%2b8&useAffectedRows=true&useSSL=false
|
||||
username: root
|
||||
password: 123456
|
||||
redis:
|
||||
host: 127.0.0.1
|
||||
password:
|
||||
password: 123456
|
||||
timeout: 6000
|
||||
port: 6379
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:mysql://127.0.0.1:3306/smart_venue?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&serverTimezone=GMT%2b8&useAffectedRows=true
|
||||
url: jdbc:mysql://127.0.0.1:13306/smart-venue?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&serverTimezone=GMT%2b8&useAffectedRows=true
|
||||
username: root
|
||||
password: hyty1234
|
||||
password: hyty4321
|
||||
redis:
|
||||
host: 127.0.0.1
|
||||
password:
|
||||
password: hyty4321
|
||||
timeout: 6000
|
||||
port: 6379
|
||||
|
||||
|
||||
Reference in New Issue
Block a user