今天使用Tomcat启动一个java项目,出现报错:

Could not publish to the server.

java.lang.IndexOutOfBoundsException

众寻之下,找到一个方法:

1、关闭eclipse

2、删除.m2文件。文件目录一般在C:\Users\JLB3610

3、打开eclipse,在项目目录下点击右键Maven -> update project

4、等待文件下载完成后,一定要关闭eclipse,然后在启动eclipse。就不会出现报错了

 

相关文章:

  • 2022-12-23
  • 2022-01-31
  • 2021-05-15
  • 2021-06-29
  • 2021-05-03
猜你喜欢
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
  • 2021-11-14
  • 2021-08-17
相关资源
相似解决方案