As demonstrated in FATtestDemo, several files need to be added to the project in order to implement FAT test, which is troublesome and error-prone. To solve this problem, 2 separate modules are created: FATtest-web - designed for frontend(web) project FATtest-service - designed for backend(service) project
To activate this project, please follow the instructions below: I. For a frontend project:
<dependency>
<groupId>com.fattest</groupId>
<artifactId>FATtest-web</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
Add featuretest=fattag in your application.properties, you may change the fattag to something else
Add @ServletComponentScan({"com.fattest"}) to your spring project
II. For a backend project:
<dependency>
<groupId>com.fattest</groupId>
<artifactId>FATtest-service</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
Add dubbo.provider.filter=passFatTag in your application.properties.
Also, add @ComponentScan({"com.fattest"}) to your spring project.
Please be kindly informed that: