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

posted on 2020-03-20 14:42  iokde.com  阅读(1903)  评论(0编辑  收藏  举报

导航