Springboot turn off the unit test
Environment: Springboot2.x, configured as follows
1. Mode one
True skips the test and does not generate class
True skips tests but generates test class
Org.apache.maven.plugins maven-surefire-plugin org.springframework springloaded 1.2.8.RELEASE True 2. Method 2 (recommended)
True skips the test and does not generate class
True skips tests but generates test class
The spring-boot-maven-plugin plug-in has integrated the maven-surefire-plugin plug-in and automatically runs Junit test, so disable automatic unit tests and simply call true or true
Org.springframework.boot spring-boot-maven-plugin org.springframework springloaded 1.2.8.RELEASE true