I encountered a strange problem today. When using canal, log42j cannot be used. After inspection, it is found that it is because of the multi-package dependency problem. For this problem, you can find the dependency relationship and remove it.
Use the method in Figure 1 to find the package dependencies, or follow the method in Figure 2.
Figure 1
Figure II
Finally, configure <exclusions> in pom.xml.