11 2022 档案
摘要:前置准备 1.导入依赖 <!-- jackson --> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.14.0</ver
阅读全文
摘要:<!-- 配置中文乱码过滤器 --> <filter> <filter-name>characterEncodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</f
阅读全文
摘要:web.xml(springMVC的核心配置DispatchServlet) <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://ww
阅读全文
摘要:1.原理图(实现代表自动装配完成,虚线我们需要实现的地方) 2.实现步骤 3.实现 HelloController.java package com.zxy.contorller; import org.springframework.web.servlet.ModelAndView; import
阅读全文
摘要:核心:spring整合mybatis spring-dao.xml <?xml version="1.0" encoding="UTF8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://w
阅读全文