Integration with application servers
By default, IntelliJ IDEA doesn't know what application servers you have installed and want to use. You need a local installation whether you want to run it locally or connect to a remotely running server.
This functionality relies on the Jakarta EE: Application Servers plugin, which is bundled and enabled in IntelliJ IDEA by default. If the relevant features aren't available, make sure that you didn't disable the plugin.
note
The Jakarta EE: Application Servers plugin is available only in IntelliJ IDEA Ultimate.
Press CtrlAlt0S to open the IDE settings and select Plugins.
Open the Installed tab, find the Jakarta EE: Application Servers plugin, and select the checkbox next to the plugin name.
Press CtrlAlt0S to open the IDE settings and select Build, Execution, Deployment | Application Servers.
Click
and select the application server.
In the dialog that opens, specify the location of the installation directory and click OK.
If you specify the correct location, IntelliJ IDEA should detect the version and set everything up.

You can also define the application server from the run configuration.
Thanks for your feedback!