经常在代码中看到依赖的作用域为<scope>test</scope>,它的作用是,只能在test目录(通过右键->Make Directory as->Test Sources Root来标记)下的类中导入(即import xxx)依赖中的内容;否则在main->java目录(Sources Root标记的)下就无法导入

依赖作用域之<scope>test</scope>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
  • 2021-10-04
  • 2021-10-19
猜你喜欢
  • 2021-05-26
  • 2022-03-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
  • 2021-10-15
相关资源
相似解决方案