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

后端 未结 6 582
慢半拍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:37

    If you don't want to change your environments or edit the .sh files you can start the server with something like the following

    CATALINA_OPTS="-Dparam1=value1 -Dparam2=value2" catalina.sh start
    

提交回复
热议问题