Closed terwer closed 1 year ago
Thanks for the report and look into this.
According to the documentation (https://tomcat.apache.org/tomcat-9.0-doc/config/resources.html
), cachingAllowed
is true
by default. And the default value for cacheMaxSize
is 10240
(10 M). Is the default configuration good for you?
allowLinking
is false
by default, but it's not commonly used, for your case, I'm going to add a registry so that you can enable it on your needs.
Any questions?
Thanks , my company project is so large, in my case, 10240
is not enough, so also add a registry for cacheMaxSize
will be better.
I tried thhe latest updated version 4.3.8. it works great! Thanks very much!
How to configure cacheMaxSize
and allowLinking
for SmartTomcat?
Search the Registry
action then:
Is your feature request related to a problem? Please describe. Sometimes,we will deploy a app path with symbol links,how ever, tomcat default load the real filesyatem,this path with throw file not found Exception.
Describe the solution you'd like
tomcatdir/conf/Catalina/localhost/appname.xml
is configurable to fix this as a best practice,See https://stackoverflow.com/a/43673455/4037224But SmartTomcat now create appname.xml without this.
What expected is
Go through the source ,I found a solution
Change
com.poratu.idea.plugins.tomcat.conf.TomcatCommandLineState.java
createResourcesElementIfNecessary() mthod should add thisDescribe alternatives you've considered The above options can be configuable.This is just a example to show how to suit this suitation.