Spring Boot 集成 Druid 使用总结

怎么配置maven

Druid 0.1.18 之后版本都发布到maven中央仓库中,所以你只需要在项目的pom.xml中加上dependency就可以了。例如:

	<dependency>
		<groupId>com.alibaba</groupId>
		<artifactId>druid</artifactId>
		<version>${druid-version}</version>
	</dependency>

也可以选择 Maven仓库查找公共的仓库地址: http://www.mvnrepository.com/artifact/com.alibaba/druid

配置spring

在application.properties配置文件中加入druid配置


spring监控之方法名正则匹配拦截配置

猜你喜欢

转载自blog.csdn.net/soinice/article/details/80942696
今日推荐