会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xiaoxi666
Master programmers think of systems as stories to be told rather than programs to be written.
博客园
首页
新随笔
联系
订阅
管理
2022年8月19日
SpringMvc 如何同时支持 Jsp 和 Json 接口?
摘要: 后端同学基本都会见过这种场景:在同一个工程中,有些页面使用jsp模版渲染,同时还有其他接口提供Json格式的返回值。为了同时支持这两种场景,我们一般是如何处理的呢? 其实非常简单: 1、在项目中为 SpringMvc 指定视图解析器 ViewResolver,并引入 jstl 和 apache-js
阅读全文
posted @ 2022-08-19 01:02 xiaoxi666
阅读(670)
评论(2)
推荐(1)
公告
TOP