springboot子模块访问jsp

项目目录结构 当security-spring-boot为独立项目时启动直接访问http://localhost:8080/security-springboot/就能访问到login.jsp 当作为子项目访问security-spring-boot的jsp文件时就报404, 原因是项目启动默认的根路径是父项目路径而非子项目路径, 解决:将子项目路径设为根路径 弹出
相关文章
相关标签/搜索