spring 关闭暴露在公网的druid

配置在nacos 上 需要在里面增加如下配置

配置value默认是true  手动设置后,重启项目即可关闭暴露在公网的druid

# druid 监控关闭
spring.datasource.druid.filter.config.enabled=false
spring.datasource.druid.web-stat-filter.enabled=false
spring.datasource.druid.stat-view-servlet.enabled=false

原文地址:https://www.cnblogs.com/lavin/p/12531650.html