在tomcat目录下,修改/conf/context.xml配置文件
加上<Context reloadable="true">
注意:tomcat每隔一段时间自动检测java文件是否修改,然后重启。
ps:只适合在开发阶段使用,项目上线后不用频繁重启tomcat。
修改servlet和java类时不用重启tomcat

相关文章:

  • 2021-11-20
  • 2022-12-23
  • 2021-11-20
  • 2022-01-24
  • 2022-12-23
  • 2021-08-29
  • 2021-10-04
猜你喜欢
  • 2022-12-23
  • 2021-11-27
  • 2021-10-14
  • 2022-01-08
  • 2021-09-11
  • 2021-11-26
  • 2022-12-23
相关资源
相似解决方案