How to pass the -D additional parameter while starting tomcat?

后端 未结 6 546
慢半拍i
慢半拍i 2020-12-25 12:14

I have a maven project, after running command mvn install all project as well as module compile and copied to local repository successfully. But now I want

6条回答
  •  囚心锁ツ
    2020-12-25 12:38

    You can set an environment variable to do that. E.g. in Linux:

    export JAVA_OPTS="-Dapp.username -Dapp.username"

    Or in Windows:

    set JAVA_OPTS="-Dapp.username -Dapp.username"

    Do this before starting Tomcat

提交回复
热议问题