Spring定时任务,本地正常, Linux服务器跑两次的问题 。。

Spring定时任务,本地正常, Linux服务器跑两次的问题 。。
原因是server.xml配置问题,按以下配置即可解决…

       <Host name="localhost"  appBase="webroot" 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" -->
        <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" />
          <Context docBase="../webapps/digiccy-trade-mission.war" path="/" reloadable="true" />  
      </Host> 

猜你喜欢

转载自blog.csdn.net/m0_37754981/article/details/78874081
今日推荐