Change Spring Embedded Tomcat Boot Path

I realized that when I run the spring project of the project stand, the built-in tomcat extracted in the /tmp file.

Periodic cleaning deletes this folder, so the application displays an error message.

Is there a way to change the path by changing it from /tmp to /customfolder.

+5
source share
1 answer

You are looking for the server.tomcat.basedir property, are you?

 server.tomcat.basedir= # Tomcat base directory. If not specified # a temporary directory will be used. 
+7
source

Source: https://habr.com/ru/post/1264055/


All Articles