添加控制台管理用户名和密码

pull/112/head
RuoYi 5 years ago
parent 126c4bc8c3
commit 7b0902477d

@ -15,7 +15,7 @@ import com.ruoyi.common.core.controller.BaseController;
@RequestMapping("/monitor/data") @RequestMapping("/monitor/data")
public class DruidController extends BaseController public class DruidController extends BaseController
{ {
private String prefix = "/monitor/druid"; private String prefix = "/druid";
@RequiresPermissions("monitor:data:view") @RequiresPermissions("monitor:data:view")
@GetMapping() @GetMapping()

@ -41,7 +41,10 @@ spring:
enabled: true enabled: true
# 设置白名单,不填则允许所有访问 # 设置白名单,不填则允许所有访问
allow: allow:
url-pattern: /monitor/druid/* url-pattern: /druid/*
# 控制台管理用户名和密码
login-username:
login-password:
filter: filter:
stat: stat:
enabled: true enabled: true

Loading…
Cancel
Save