随笔分类 - SM
用于记录SpringMVC和Mybatis集合
摘要:请求-->DispatchServlet -->HandlerMapping -->Controller -->返回数据对象(String/user/list/Map) -->json响应 怎么用? -导包 jackson -配置注解驱动; -Controller方法上增加@ResponseBody
阅读全文
摘要:在web.xml中配置 <!-- 编码过滤器 --> <filter> <filter-name>characterEncodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingF
阅读全文
摘要:项目结构 web.xml中配置DispatcherServlet <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://j
阅读全文