We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
打包war后部署访问不到,因为静态资源压根就没有 不解
The text was updated successfully, but these errors were encountered:
需要通过根目录访问才行
Sorry, something went wrong.
部署war时缺少了一步:
修改/root/apache-tomcat-9.0.65/conf/server.xml,在Host标签内添加一个Context标签,内容如下:
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Context path="/root/apache-tomcat-9.0.65/webapps/" docBase="forum-java.war" debug="0" privileged="true" reloadable="true"></Context> <!-- 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" --> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> </Host>
No branches or pull requests
打包war后部署访问不到,因为静态资源压根就没有 不解
The text was updated successfully, but these errors were encountered: