The first step: Docker installs mongodb
The second step: Start mongodb in docker
Step Three: Configure mongodb user information
Collecting logs is particularly rough
Step one: Add configuration to pom.xml
Step two: Configure the connection in application.yml
Step three: aop slice log Obtain
Remarks: Please pay attention to the mongodb version used: 4.2. 1 Configure and use it in sequence
If you are using the latest version, there may be problems with various permissions being passed, then please switch to the 4.2.1 stable version. Using the latest version feels a bit like a guinea pig.
The above is the detailed content of How to install Docker mongoDB and collect springboot logs. For more information, please follow other related articles on the PHP Chinese website!