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T4IbJmthcOBUV92PRGVhYMKQWluPdXMJVCVHMkds+eOLrPLpcKaelgx31q13tGdOAK/0eRLlvlHfRmhlYUDz4+YwgTIkdxkqJ47op6dp7BdeHIxYPUFr9wBcUn+GLmycOT5wVjJkdzD9NwRJXcX2z073ciHuyS56ZjBHlS4HvvIzTcUFA+rLBx1fjBWciQ3SannJtQks2uYnsVGfIr5cgMYd2PAsESM+nJPCQMrC0edH4yVHMmdYs9NuAAvCSnmW613TGcdKb0r3DsKN5Ri1JeTO6iysO/5IffEyJHcJNXn3OwhBigtOZI7xefcIQ83QHlQcD43HT/g5z5QUG4AKJAbKMv/AbXGqlKx3p15AAAAAElFTkSuQmCC" alt="" />(示例项目)
对于一个web项目来说,我们使用IDE开发完成后,如何在Tomcat中运行呢,因为我们开发是使用IDE,可以在IDE中运行,但是实际在运行的时候
已经脱离集成开发环境,比如我们将项目打成war包,扔到tomcat的webapp目录下,我们要运行这个项目,还需要进行设置。
是在server.xml中进行设置
<Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="%h %l %u %t "%r" %s %b"
prefix="localhost_access_log" suffix=".txt"/>
<Context docBase="C:\apache-tomcat-8.0.33\webapps\mybatis" path="/mybatis" reloadable="false"
source="org.eclipse.jst.jee.server:mybatis"/>
</Host>
访问的url:
http://localhost:8080/mybatis