Вопрос

I know we can set/add a property to tomcat catalina opts by using set or export command. But how do I get or print all the properties set in CATALINA_OPTS as well as their values? I checked online but couldn't really find a way to print the values. Thanks!

Это было полезно?

Решение

In case if you want to view all environment variables...

... in Windows, type set in command prompt.

... in Mac / Linux, type env in Terminal.

Другие советы

I wouldn't normally suggested editing the standard Tomcat scripts but in this case it is probably the simplest approach.

Look in catalina.[sh|bat] for where CATALINA_BASE and friends are echo'd to the console and add a line to echo CATALINA_OPTS.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top