1. Create a maven project
- create name
2. Create a folder (the name can be arbitrary)
3. Create a class (a common class, a configuration class)
- configuration class
- common class
4. Introduce dependencies
5. Create a META-INF creation file under the resource folder
- Automatically load the value of the configuration class to fill in the path of the configuration class
6. Make jar package
- Click the maven project on the right to package it into a jar package
- Description: install is to package the project into a jar and put it in the maven warehouse
- After the packaging is complete, find the corresponding jar package in the local maven warehouse
7. Create a new springboot project and introduce a custom startup class in the pom of the new project
- When introduced, the groupId and artifactId correspond to the groupId and artifactId in the custom startup class project respectively
8. Create a Controller folder and automatically inject the target class
9. Test
.