config and user bug
This commit is contained in:
@@ -119,7 +119,6 @@ public class MyUserController {
|
|||||||
* 保存
|
* 保存
|
||||||
*/
|
*/
|
||||||
@RequestMapping("/save")
|
@RequestMapping("/save")
|
||||||
// @RequiresPermissions("book:user:save")
|
|
||||||
public R save(@RequestBody MyUserEntity user){
|
public R save(@RequestBody MyUserEntity user){
|
||||||
String password = user.getPassword();
|
String password = user.getPassword();
|
||||||
String saltMD5 = MD5Utils.getSaltMD5(password);
|
String saltMD5 = MD5Utils.getSaltMD5(password);
|
||||||
@@ -134,6 +133,7 @@ public class MyUserController {
|
|||||||
*/
|
*/
|
||||||
@RequestMapping("/update")
|
@RequestMapping("/update")
|
||||||
public R update(@RequestBody MyUserEntity user){
|
public R update(@RequestBody MyUserEntity user){
|
||||||
|
System.out.println(user.toString());
|
||||||
userService.updateById(user);
|
userService.updateById(user);
|
||||||
return R.ok();
|
return R.ok();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ spring:
|
|||||||
database: 0
|
database: 0
|
||||||
host: 39.106.36.183
|
host: 39.106.36.183
|
||||||
port: 6379
|
port: 6379
|
||||||
# password: Jgll2015 # 密码(默认为空)
|
password: Jgll2015 # 密码(默认为空)
|
||||||
timeout: 6000000ms # 连接超时时长(毫秒)
|
timeout: 6000000ms # 连接超时时长(毫秒)
|
||||||
jedis:
|
jedis:
|
||||||
pool:
|
pool:
|
||||||
|
|||||||
Reference in New Issue
Block a user