tomcat

2019-04-03  本文已影响0人  A_1341

新建setenv.bat

设置spring profile

setenv.bat加入如下内容

conf->context.xml

 <CookieProcessor className="org.apache.tomcat.util.http.LegacyCookieProcessor" />
image.png

conf->tomcat-users.xml

<tomcat-users xmlns="http://tomcat.apache.org/xml" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd" version="1.0">

  <role rolename="manager-gui"/>
  <role rolename="admin-gui"/>
  <user username="tiantianquan" password="pw" roles="manager-gui,admin-gui"/>
</tomcat-users>

conf->server.xml

   <Context path="" docBase="app-name" debug="0" reloadable="true"></Context>
image.png image.png
上一篇 下一篇

猜你喜欢

热点阅读