Search code examples
javaspringjspspring-mvcspring-boot

WEB-INF folder is not creating in Spring Boot application?


I am creating a Spring Boot application, using Spring Initializr, But the folder structure is bit different, there is no WEB-INF folder, so where I will put the JSP files, shall I create the WEB-INF folder manually?


Solution

  • We need to create the WEB-INF folder manually in spring boot application. Follow these steps:

    1. Select main folder as highlighted below.

      enter image description here

    2. Right click and create a folder with name webapp.

    3. Now right click on webapp folder and create WEB-INF folder.

    4. Now similarly create a view folder (or any other name you like) inside WEB-INF folder to keep all the JSPs.

    5. Below should be the folder structure after doing above steps.

      enter image description here