Tomcat、ROOT問題の解決にデフォルトで配備
1114 ワード
開発構成: Tomcat 8.5 MyEclipse2017
1.質問の説明:MyEclipseを使用してプロジェクトをTomcatの下に配置する場合、デフォルトではROOTに配置する
コンソールに警告が表示されます.警告[localhost-startStop-1]org.apache.catalina.co re.StandardContext.setPath A context path must either be an empty string or start with a'/'and do not end with a'/'.The path[/]does not meet these criteria and has been changed to[]
2.理由:context.xmlのcontextが「/」:
変更後:
OK!
1.質問の説明:MyEclipseを使用してプロジェクトをTomcatの下に配置する場合、デフォルトではROOTに配置する
コンソールに警告が表示されます.警告[localhost-startStop-1]org.apache.catalina.co re.StandardContext.setPath A context path must either be an empty string or start with a'/'and do not end with a'/'.The path[/]does not meet these criteria and has been changed to[]
2.理由:context.xmlのcontextが「/」:
<Context path="/">
Context>
変更後:
<Context path="/myapp">
Context>
OK!