When I run my project, I found module is error
then I click in found a error \"Warning:No JDK specified for module \'Myproject\'.when run my project.\",vI sett
Restart IntelliJ and reimport the Project and import it as maven. It should work then. The error occurs because IntelliJ keeps track of module through .iml files so any changes in these files can cause this error. Reimporting the project regenerates the .iml file so generally, it solves the error.