org.apache.catalina.startup.Bootstrap.getCatalinaBaseFile()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(124)

本文整理了Java中org.apache.catalina.startup.Bootstrap.getCatalinaBaseFile()方法的一些代码示例,展示了Bootstrap.getCatalinaBaseFile()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bootstrap.getCatalinaBaseFile()方法的具体详情如下:
包路径:org.apache.catalina.startup.Bootstrap
类名称:Bootstrap
方法名:getCatalinaBaseFile

Bootstrap.getCatalinaBaseFile介绍

[英]Obtain the configured base (instance) directory. Note that home and base may be the same (and are by default). If this is not set the value returned by #getCatalinaHomeFile() will be used.
[中]获取配置的基本(实例)目录。请注意,home和base可能相同(默认情况下是相同的)。如果未设置此值,将使用#getCatalinaHomeFile()返回的值。

代码示例

代码示例来源:origin: codefollower/Tomcat-Research

getServer().setCatalinaBase(Bootstrap.getCatalinaBaseFile());

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

getServer().setCatalinaBase(Bootstrap.getCatalinaBaseFile());

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

ConfigFileLoader.setSource(new CatalinaBaseConfigurationSource(Bootstrap.getCatalinaBaseFile(), getConfigFile()));
File file = configFile();
getServer().setCatalinaBase(Bootstrap.getCatalinaBaseFile());

相关文章