druid 连接池监控报错 Sorry, you are not permitted to view this page.

简介: druid 连接池监控报错 Sorry, you are not permitted to view this page.

使用Druid连接池的时候,遇到一个奇怪的问题,在本地(localhost)可以直接打开Druid连接池监控,在其他机器上打开会报错: Sorry, you are not permitted to view this page


解决


在druid wiki上有如下描述:


判断规则


  • deny优先于allow,如果在deny列表中,就算在allow列表中,也会被拒绝。
  • 如果allow没有配置或者为空,则允许所有访问


添加如下配置:


spring.datasource.druid.stat-view-servlet.allow=







相关文章
Kam
|
druid
druid数据连接池异常 connection holder is null 解决方案
druid数据连接池异常 connection holder is null 解决方案
Kam
2303 0
|
监控 druid
druid 连接池监控报错 Sorry, you are not permitted to view this page.
druid 连接池监控报错 Sorry, you are not permitted to view this page.
2116 0
|
druid 网络协议 Java
Spring Boot集成Druid异常discard long time none received connection.
Spring Boot集成Druid异常discard long time none received connection.
2822 0
|
8月前
|
监控 druid Java
Druid【SpringBoot集成】监控数据库报错 Failed to bind properties under ‘‘ to javax.sql.DataSource 解决(含配置源码)
Druid【SpringBoot集成】监控数据库报错 Failed to bind properties under ‘‘ to javax.sql.DataSource 解决(含配置源码)
636 0
|
8月前
|
Java 数据库连接 mybatis
项目移植到原先mybasis项目里出现BindingException: Invalid bound statement (not found): **selectPage
项目移植到原先mybasis项目里出现BindingException: Invalid bound statement (not found): **selectPage
86 1
|
NoSQL Redis
Lettuce: Connection to x.x.x.x not allowed. This connection point is not known in the cluster view
Lettuce: Connection to x.x.x.x not allowed. This connection point is not known in the cluster view
195 0
|
druid Java
SpringBoot整合Druid报错记录:Failed to configure a DataSource: ‘url‘ attribute is not specified and no embe
SpringBoot整合Druid报错记录:Failed to configure a DataSource: ‘url‘ attribute is not specified and no embe
|
前端开发 Java 程序员
SpringBoot中ErrorPage(错误页面)的使用--【ErrorPage组件】
SpringBoot中ErrorPage(错误页面)的使用--【ErrorPage组件】 CSDN 转过来的,所以格式与内容有些许错误请见谅
|
JSON 前端开发 Java
【elementUI + Spring报错解决方案】Required request part ‘*****‘ is not present
【elementUI + Spring报错解决方案】Required request part ‘*****‘ is not present
1065 0
【elementUI + Spring报错解决方案】Required request part ‘*****‘ is not present
|
Java 测试技术 数据库
【异常】测试自增时数据库报错Springboot-jpa Table ‘sell.hibernate_sequence‘ doesn‘t exist
测试自增时数据库报错Springboot-jpa Table ‘sell.hibernate_sequence‘ doesn‘t exist
100 0
【异常】测试自增时数据库报错Springboot-jpa Table ‘sell.hibernate_sequence‘ doesn‘t exist