一个几年前写的springboot整合jsp的demo工程拿出来作为子工程聚合起来管理后,在idea中启动发现页面全都变成404,排除了mvc配置,webapp识别成web工程文件夹之后,发现因为多moudle聚合的原因,需要在子工程启动时,指定Working directory,不指定就404,好坑啊,记一下,idea中配置如下:
springboot 404 idea
容器启动时输出,System.getProperty(“user.dir”)获取执行路径发现配和不配确实不同,emmmm

相关文章:

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