为什么我的 springboot web 应用程序不能添加新的静态文件?有活着的人类吗? [关闭]

问题描述 投票:0回答:0

我正在使用 springboot 2.1.1.RELEASE、tomcat 9 和 java 11。我需要将 sitemap.xml 添加到根文件夹,但即使提供了所有 jsp 文件也无法提供静态内容。

我要显示它:localhost:8080/sitemap.xml

关于如何让它工作有什么想法或建议吗?

谢谢,请不要拖延,因为我需要尽快解决! 罗布

java spring-boot tomcat9
© www.soinside.com 2019 - 2024. All rights reserved.