Fix: a little defects when deploy to tomcat after build