一个Tomcat中有多个应用,如何设置每个应用的名字?

ai

#1

通过设置 oneapm.properties 文件中 enable_auto_tier_naming 选项为 true ,默认是 false ,


命名是根据

  1. 从web.xml的servlet标签中获取initparameter属性
  2. web.xml的context-param标签中获取属性
  3. 从servletContext中尝试获取 " display-name " 标签的配置,如果没有获取到,从contextPath中解析tierName