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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM