Skip to content

Commit 3cbf55c

Browse files
committed
👌 更新嵌入式Tomcat启动类
1 parent ec0bd45 commit 3cbf55c

File tree

1 file changed

+10
-3
lines changed
  • codes/javatool/server/src/main/resources/tomcat/conf

1 file changed

+10
-3
lines changed

codes/javatool/server/src/main/resources/tomcat/conf/server.xml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,18 @@
1616
processorCache="300"/>
1717

1818
<Engine name="localhost" defaultHost="localhost">
19-
<Host name="localhost" createDirs="false" appBase="${catalina.base}/../../../../" unpackWARs="false"
19+
<Host name="localhost" createDirs="false" appBase="${tomcat.host.appBase}" unpackWARs="false"
2020
autoDeploy="false"
2121
deployOnStartup="false" failCtxIfServletStartFails="true">
22-
<Context path="/javatool-server" docBase="src/main/webapp" reloadable="false" logEffectiveWebXml="false" privileged="false"
23-
swallowOutput="false" workDir="${catalina.base}/work"/>
22+
<Context path="/javatool-server" docBase="${tomcat.context.docBase}" reloadable="false" logEffectiveWebXml="false"
23+
privileged="false"
24+
swallowOutput="false" workDir="${catalina.base}/work">
25+
<JarScanner>
26+
<JarScanFilter pluggabilitySkip="*.jar" pluggabilityScan=""
27+
defaultPluggabilityScan="true" tldSkip="*.jar"
28+
tldScan="" defaultTldScan="true"/>
29+
</JarScanner>
30+
</Context>
2431
</Host>
2532
</Engine>
2633
</Service>

0 commit comments

Comments
 (0)