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=


相关文章
|
监控 druid
druid 连接池监控报错 Sorry, you are not permitted to view this page.
druid 连接池监控报错 Sorry, you are not permitted to view this page.
666 0
|
druid 网络协议 Java
Spring Boot集成Druid异常discard long time none received connection.
Spring Boot集成Druid异常discard long time none received connection.
2790 0
|
7月前
|
监控 druid Java
Druid【SpringBoot集成】监控数据库报错 Failed to bind properties under ‘‘ to javax.sql.DataSource 解决(含配置源码)
Druid【SpringBoot集成】监控数据库报错 Failed to bind properties under ‘‘ to javax.sql.DataSource 解决(含配置源码)
602 0
|
6月前
|
监控 druid Java
Springboot用JUnit测试接口时报错Failed to determine a suitable driver class configure a DataSource: ‘url‘
Springboot用JUnit测试接口时报错Failed to determine a suitable driver class configure a DataSource: ‘url‘
111 0
|
7月前
|
Java 数据库连接 mybatis
项目移植到原先mybasis项目里出现BindingException: Invalid bound statement (not found): **selectPage
项目移植到原先mybasis项目里出现BindingException: Invalid bound statement (not found): **selectPage
71 1
|
关系型数据库 MySQL
ERROR com.alibaba.druid.pool.DruidDataSource - create connection SQLException, url
ERROR com.alibaba.druid.pool.DruidDataSource - create connection SQLException, url
3182 0
ERROR com.alibaba.druid.pool.DruidDataSource - create connection SQLException, url
|
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
|
关系型数据库 MySQL Windows
对于测试时,错误信息 Caused by: com.mysql.jdbc.PacketTooBigException: Packet for query is too large
对于测试时,错误信息 Caused by: com.mysql.jdbc.PacketTooBigException: Packet for query is too large
|
前端开发 Java 程序员
SpringBoot中ErrorPage(错误页面)的使用--【ErrorPage组件】
SpringBoot中ErrorPage(错误页面)的使用--【ErrorPage组件】 CSDN 转过来的,所以格式与内容有些许错误请见谅
|
Java 测试技术 数据库
【异常】测试自增时数据库报错Springboot-jpa Table ‘sell.hibernate_sequence‘ doesn‘t exist
测试自增时数据库报错Springboot-jpa Table ‘sell.hibernate_sequence‘ doesn‘t exist
92 0
【异常】测试自增时数据库报错Springboot-jpa Table ‘sell.hibernate_sequence‘ doesn‘t exist