How to add Java startup parameters, such as - Dtest=1

Answered

I want to develop a plugin that has a page and a button. When clicking the button, it will add a Java startup parameter to my SpringBoot project, with the parameter - Dtest=1, so that the project can obtain this parameter for communication between the plugin and the SpringBoot project

0
3 comments

Hi,

The question is totally unclear. Please provide the full context.

1

Hi,

If you mean modifying run configurations for a Spring Boot application, try implementing com.intellij.execution.RunConfigurationExtension and registering it in the com.intellij.runConfigurationExtension extension point.

If not, please describe the use case in detail. What APIs do you plan to use for running Spring Boot applications?

0

Please sign in to leave a comment.