解决方法:
file-> project structure ..-> Modules
然后 “+” 选择需要打开的文件。
next
选择 import modules from external model
选择 maven
一直next到 finished。点击 apply,ok.
参考文档:
https://zhinan.sogou.com/guide/detail/?id=316513740715
参考文档:
https://zhinan.sogou.com/guide/detail/?id=316513740715