Debugging and publishing configuration in Java NetBeans project

Can I use a debug / release configuration that I can choose between so that I can change some variables when compiling the project?

For example, switch or turn off some output debug variables between database login variables

thank you

Solution

This configuration is easy to handle through the command line - D parameters. These parameters should be set in the run configuration or through the configuration file that can be selected in the same way (usually cleaner if there are a pile of parameters)

According to the framework used, there are many ways to solve this problem

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>