很简单,把静态页面放在static文件夹下面,就能通过地址栏输入html文件名的方式访问了
SpringBoot如何直接访问HTML页面
原创
©著作权归作者所有:来自51CTO博客作者沧海笑笑笑的原创作品,请联系作者获取转载授权,否则将追究法律责任
下一篇:JDK源码(18)-System
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
SpringBoot直接访问图片资源
1.把存放图片的文件夹放到recources下的static下2.在application.yml加入如下配置:
spring boot java spring -
SpringBoot 直接访问静态资源
SpringBoot 直接访问静态资源
spring boot shiro security 静态资源 直接访问 -
通过nginx禁用ip直接访问
目的:防止直接使用IP地址访问网站。default_server 配置。
nginx 服务器 Nginx 重启