package org.fh; import com.alibaba.druid.support.http.StatViewServlet; import com.alibaba.druid.support.http.WebStatFilter; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.boot.web.servlet.ServletRegistrationBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; /** * 说明:druid数据库连接池的配置类(必须与启动类包目录同级) * 作者:FH Admin * from:fhadmin.cn */ @Configuration public class DruidConfiguration { @Bean public ServletRegistrationBean<StatViewServlet> statViewServlet() { // 创建servlet注册实体 ServletRegistrationBean<StatViewServlet> servletRegistrationBean = new ServletRegistrationBean<StatViewServlet>(new StatViewServlet(), "/druid/*"); // 设置ip白名单 //servletRegistrationBean.addInitParameter("allow", "127.0.0.1"); // 设置ip黑名单,如果allow与deny共同存在时,deny优先于allow //servletRegistrationBean.addInitParameter("deny", "192.168.0.1"); // 设置控制台管理用户 //servletRegistrationBean.addInitParame.............原文转载:http://www.shaoqun.com/a/1450756.html
2021龙华区体育开放日时间、地点、项目及参与方式:http://www.30bags.com/a/743395.html
深圳大型舞蹈史诗黄河多长时间:http://www.30bags.com/a/795406.html
2022年深圳光明区文化馆春节元宵节活动:http://www.30bags.com/a/912418.html
黑五是什么时候:https://m.ikjzd.com/articles/130537
公司注册资金:https://m.ikjzd.com/articles/106451
友家速递:https://www.ikjzd.com/w/1341
Rakuten跨境电商选品建议,日本乐天卖什么好:http://www.kjdsnews.com/a/761436.html
大熊数据分析|用好这些A/B测试工具,优化独立站。:http://www.kjdsnews.com/a/761437.html
facebook投放回忆录:http://www.kjdsnews.com/a/761438.html
2022-01-18
druid数据库连接池的配置类
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment