Druid monitoring configuration
•
Java
Druid has many new features compared with the traditional c3p0, DBCP and dbcp2
You can online monitor the database and its tables and SQL, as well as the controller's requestmapping and corresponding business requests and sessions
It is a very good database connection pool
1、 Add the following dependencies
2、 Web XML configuration
Note: it is placed before the front-end controller, that is, before the dispatchservlet
3、 Spring mybatis XML configuration
4、 The final effect is as follows:
Enter IP: port / project name / Druid in the browser
For example: http://192.168.126.128:8080/test/druid
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码