spring整合druid的问题Sorry, you are not permitted to view this page.

一,在1.1.22版本druid使用提示如下异常

Sorry, you are not permitted to view this page.

application.yam配置应该修改为如下:

    druid:   #配置druid访问的账号密码
      stat-view-servlet:
        enabled: true
        loginUsername: test
        loginPassword: test
        #禁用重置按钮
        reset-enable: false 
        url-pattern: /druid/*
        allow: ""
        deny: ""
      web-stat-filter:
        enabled: true

二,在1.1.10版本的配置如下

  datasource:
    druid:   #配置druid访问的账号密码
      stat-view-servlet:
        enabled: true
        loginUsername: test
        loginPassword: test
        allow: 
      web-stat-filter:
        enabled: true

 

posted @ 2021-06-02 12:26  叶丶梓轩  阅读(5683)  评论(0编辑  收藏  举报