IntelliJ IDEA
 
Get IntelliJ IDEA

Configure static content resources

Last modified: 17 June 2024

Configuring static Web resources involves:

  1. Specifying location of the static Web contents on the server.

    After deployment, all the static content resources that implement the user interface should be located below the Web application root directory. By default, IntelliJ IDEA maps the target Web application root directory to the web folder which is created after you enable Web development support. The default application home page is mapped to the index.jsp stub file which is also created automatically.

    You can arrange your static content resources in a module in two ways:

    • Store the required resources and directories below the <project root>\web folder. After deployment, the entire folder hierarchy of these resources will be copied to the server below the application root.

    • Store the required resources locally wherever you may find suitable and map them to folders on the server.

  2. Including static Web contents in the artifact to be deployed.