感谢同学的支持,我看有个英文解释
Since Eclipse Photon, in Java Maven projects source folders containing test code (src/test/java) are marked automatically as test source.
Classpath separation via test source prevents JUnit and other test libraries and code from being used accidentally in the main code (src/main/java).
大概意思说的是eclipse会自动标注src/test/java这些为测试资源,这样做是为了防止在mian里面使用test的资源,其实咱们项目里面并没有在mian里用到测试的资源,而是反过来,所以在这里标注成no是为了方便咱们test资源能用到main里面的resources相关的配置,我理解应该是这样的