@Configuration @EnableTransactionManagement public class DruidConfig extends Object
Constructor and Description |
---|
DruidConfig() |
Modifier and Type | Method and Description |
---|---|
org.springframework.boot.web.servlet.ServletRegistrationBean |
druidServlet() |
org.springframework.boot.web.servlet.FilterRegistrationBean |
filterRegistrationBean() |
DataSource |
getDataSource() |
com.alibaba.druid.support.spring.stat.DruidStatInterceptor |
getDruidStatInterceptor() |
org.springframework.aop.support.JdkRegexpMethodPointcut |
getJdkRegexpMethodPointcut() |
@Bean @Primary public DataSource getDataSource()
@Bean public org.springframework.boot.web.servlet.FilterRegistrationBean filterRegistrationBean()
@Bean public org.springframework.boot.web.servlet.ServletRegistrationBean druidServlet()
@Bean public com.alibaba.druid.support.spring.stat.DruidStatInterceptor getDruidStatInterceptor()
@Bean @Scope(value="prototype") public org.springframework.aop.support.JdkRegexpMethodPointcut getJdkRegexpMethodPointcut()
Copyright © 2019. All rights reserved.