How to find webapps directory path using java

Is there a way to find the path to the tomcat webapps directory using java, as we use System.getProperties("...")to get user.dir, etc.

Thanks in advance.

+3
source share
1 answer

You can use System.getProperty( "catalina.base" )for this. And add "/webapps"to the path.

+11
source

All Articles