Tomcat サーバー設定のデフォルトの起動ページ

conf フォルダーで server.xml を見つけて開き
、ホスト ノードを変更して以下を追加します。

<Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">

        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html
             Note: The pattern used is equivalent to using pattern="common" -->
	    <Context path="" docBase="C:/Server/apache-tomcat-8.5.57/webapps/mbts_27_elearn/" debug="0"/>
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log" suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />
		

      </Host>

docBase 内のパスはプロジェクトのルート ディレクトリです。

おすすめ

転載: blog.csdn.net/weixin_41743629/article/details/117708715