Spring boot uses Druid for dimension statistics and monitoring
Druid
Druid: a database connection pool framework for monitoring. The whole project is composed of database connection pool, plug-in framework and SQL parser.
Druid function is between powerdrill and Dremel. It realizes almost all the functions of Dremel and absorbs some interesting data formats from powerdrill. Druid allows single table queries in a way similar to Dremel and powerdrill. At the same time, it also adds some new features, such as providing column storage format for local nested data structures, indexing for fast filtering, real-time ingestion and query, high error tolerant distributed architecture, etc.
Spring Boot
As an important open source framework in the field of Java EE framework, spring framework plays a very important role in enterprise application development. At the same time, there are many spring frameworks and their sub frameworks, so the amount of knowledge is very wide.
Spring boot: a sub framework of spring framework, also known as micro framework, is a framework launched in 2014 to make the development of spring framework easier. After learning the knowledge of spring framework, it is inevitable that the spring framework needs to configure a lot of XML. If you use the spring boot framework, you can use annotation development, which greatly simplifies the development based on the spring framework@ H_ 404_ 19@
Spring boot makes full use of the configuration mode of javaconfig and the concept of "Convention is better than configuration", which can greatly simplify the development of web applications and rest services based on spring MVC.
Then this article introduces the creation and deployment of spring boot project based on idea editor.
Spring boot uses druid to monitor
Maven configuration
To configure spring boot to implement a demo, As long as you add spring boot starter (core module) and spring boot starter web (because this is a web project), you can refer to my configuration. Spring boot hot deployment is used here. You need to search for jar: springloaded-1.2.4.release.jar on GitHub, and then download it and put it in the Lib folder of the project. You can refer to my configuration
application. Properties configuration @ h_ 404_ 19@
Mode 1: native servlet and filter mode
Write servlet class:
Filter class:
Then, you need to set servlet automatic scanning in the spring boot startup class, otherwise there will be a 404 page missing error. Use
@Servletcomponentscan annotation
Method 2: use code to register servlet and filter
Project monitoring
Then enter the URL to access my project access path: http://localhost:8087/springbootdemo/druid/login.html , this needs to be modified. My context is configured as spring boot demo and the port is configured as 8087. Please refer to my last blog