Run/Debug Configuration: Spring Boot
Use this dialog box to create configurations used to run or debug Spring Boot applications.
This dialog box consists of the following areas:
Configuration tab
Use this tab to configure general run/debug configuration settings, and the specific Spring Boot settings.
Item | Description |
---|---|
Main class | In this text box, specify the fully qualified name of the class to be executed (passed to the JRE). Enter the class name manually or click the Browse button and search for the desired class by name or through the project. |
VM options |
If necessary, specify the command-line options to be passed to the server JVM at the server start.
When specifying the options, follow these rules:
|
Program arguments |
Enter a list of arguments to be passed to the program in the format you would use in the command line. If there is not enough space,
click the button and enter the parameters in the Program Parameters dialog box.
Use the same rules as for specifying the VM options. |
Working directory | If necessary, specify a directory to be used by the running text. This directory is the starting point for all relative input and output paths. By default, this is the project directory. To specify a different directory, click the Browse button and select a directory in the dialog that opens. |
Environment variables | Click the Browse button to open the Environment Variables dialog where you can create variables and specify their values. |
Use classpath of module | Select the module whose classpath will be used to run the application. |
JRE | By default, the newest JDK from the module dependencies is used to run the application. If you want to specify an alternative JDK or JRE here, select it from the drop-down list. |
Enable debug output | Select this option to enable logging of the debug output. |
Hide Banner | Select this option to hide the startup banner printed by Spring Boot when starting a run/debug session. |
Active Profiles | If necessary, specify active Spring profiles that you want to use in this run/debug configuration. |
Override parameters |
Use this table to specify which Spring Boot configuration parameters you want to override. Such parameters are normally defined in
configuration files. Listing them in a run/debug configuration allows you to easily switch parameters by modifying the run/debug configuration
instead of config files, or have multiple run/debug configurations with different parameter values.
When you add a new parameter and start typing its name, IntelliJ IDEA provides content completion and displays a list of
parameters that match the string you've entered.
Use the following controls:
|
Logs tab
Use this tab to specify which log files generated while running or debugging must be displayed in the console, that is in the dedicated tabs of the Run tool window and the Debug tool window.
Item | Description |
---|---|
Is active | Select checkboxes in this column to have the corresponding log entries displayed in the Run tool window and the Debug tool window. |
Log File Entry |
The read-only fields in this column list the log files to be shown. This list can contain:
|
Skip Content | Select the checkboxes in this column to skip the previous contents of the selected log. |
Save console output to file | Select this option to save the console output to a specified location. Type the path manually, or click the Browse button and select a location in the dialog that opens. |
Show console when standard out changes | Select this option to activate the output console and bring it forward if the associated process is writing to Standard.out. |
Show console when standard error changes | Select this option to active the output console and bring it forward if the associated process is writing to Standard.err. |
Click this button to add a new log file entry. Specify the associated properties in the Edit Log Files Aliases dialog. | |
Click this button to edit the properties of the selected log file entry in the Edit Log Files Aliases dialog. | |
Click this button to remove the selected log entry from the list. | |
Click this button to edit the selected log file entry. This button only appears when an entry is selected. |
Before launch options
Use this section to specify which tasks must be carried out before starting the run/debug session. The tasks you specify will be performed in the order that they appear in the list.
Item | Shortcut | Description |
---|---|---|
Alt+Insert |
Click this icon to add a task to the list. Select from the following task types:
| |
Alt+Delete | Click this icon to remove the selected task from the list. | |
Enter | Click this icon to edit the selected task. Make the necessary changes in the dialog that opens. | |
/ | Alt+Up / Alt+Down | Click these icons to move the selected task one line up or down in the list. |
Show this page | N/A | Select this check box to show the run/debug settings before starting a run/debug session. |