IDEA to create a multi-module project SpringBoot

IDEA to create a multi-module project SpringBoot

Step 1: Create a new project Project

  • Use IDEA to create a new project, there are many online tutorials, not detailed here, directly on the map

  • The next step is to select their own project directory, the project name and a simple description of the project

  • Select SpringBoot specific versions and dependencies, because we are here to create the parent project, there is no need to select a specific dependence, like default

  • Finally, click on the finish, created

  • Eventually, the entire project directory structure, as follows

Step 2: Create sub-module

  • Delete the above project src directory, as follows

  • Right-click the project, create a sub-module, the process of creating the project throughout the creation process is basically the same as above, only one place, we need to pay attention, to add the corresponding web dependent

  • After the project is created, the directory is as follows

The third step: coding

  • Code written Controller

Step four: start, visit

  • Directly start the corresponding file

  • Start your browser, enter the address: localhost: 8080 visit, the following message appears - that means success.

Guess you like

Origin www.cnblogs.com/chudonghai/p/12070419.html