1.在tomcat 的context.xml配置文件的<Context reloadable="true">中加入 reloadable="true"指令, 作用 : 每次修改代码时 tomcat会自动加载文件,不需要重启tomcat