首先配置learn-admin-webui中的web.xml文件
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdjb8x3j314a0i10vy.jpg)
配置ContextLoaderListener
ContextLoaderListener的作用:加载 Spring 的配置文件,根据 Spring 的配置文件初始化 IOC 容器
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdjzomnj31aq0h5q4t.jpg)
配置CharacterEncodingFilter
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdkhwoaj31630myacd.jpg)
CharacterEncodingFilter解决POST请求的字符乱码问题。需要注意的是在web.xml中存在多个Filter时,让这个Filter 作为过滤器链中的第一个 Filter。
request.setCharacterEncoding(encoding)要求必须在所有request.getParameter(xxx)操作前面
response.setCharacterEncoding(encoding)要求必须在所有response.getWriter()
操作前面
不满足这个顺序要求字符集设定无法生效
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdl5n5jj31710lh0vd.jpg)
配置DispatcherServlet
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdlx29uj317j0ms41p.jpg)
在learn-admin-webui创建文件spring-web-mvc.xml
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdmhyr9j316e0fbacm.jpg)
创建文件
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdmzpqjj30b10gd0ta.jpg)
配置内容
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.3.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd"> </beans>
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdo2t3vj316z0dk768.jpg)
在web.xml中继续配置
说明
url-pattern配置方式:/表示拦截所有请求
<url-pattern>/</url-pattern>
url-pattern配置方式:配置请求扩展名
优点1:xxx.css、xxx.js、xxx.png等等静态资源完全不经过SpringMVC,不需要特殊处理
优点2:可以实现伪静态效果。表面上看起来是访问一个HTML文件这样的静态资源,但是实际上是经过Java代码运算的结果
伪静态作用1:给黑客入侵增加难度
伪静态作用2:有利于SEO优化(让百度、谷歌这样的搜索引擎更容易找到我们项目)
缺点:不符合RESTFul风格
为什么要另外再配置json扩展名呢?
如果一个Ajax请求扩展名是html,但是实际服务器给浏览器返回的是json数据,二者就不匹配了,会出现406错误
为了让Ajax请求能够顺利拿到JSON格式的响应数据,我们另外配置json扩展名
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdolwroj30yu0gy76d.jpg)
然后返回去继续配置spring-web-mvc.xml
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdp0188j30zr0f3jtf.jpg)
这个com.xlgl.wzy.mvc是在learn-admin-component中,包含下的包结构
com.xlgl.wzy.mvc com.xlgl.wzy.mvc.config com.xlgl.wzy.mvc.handler com.xlgl.wzy.mvc.interceptor
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdpe4bkj30bx0aj74i.jpg)
继续配置spring-web-mvc.xml中的注解驱动和视图解析器
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdpsmeuj31bu0jeacr.jpg)
创建一个页面访问一下
首先在learn-admin-webui项目的pom中加入依赖
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdqa1whj30ut0m70v4.jpg)
创建index.jsp
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdr06gjj31400m8tc8.jpg)
编写一句话
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdrmqzgj314r0fu40d.jpg)
在learn-admin-component中新建对应的handler
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jds3a0sj30z00epmyf.jpg)
编写测试方法
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdslhhlj312p0lpac2.jpg)
我们写一个查询所有的方法
首先在service接口里
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdt8nsbj30m00g1752.jpg)
接口serviceimpl中
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdtoqbij30z60n9jte.jpg)
在handler中就可以查询了
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdu5720j30zg0nlq5l.jpg)
返回值我们创建一个testssminfo.jsp文件
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdum2msj30uj0leq5t.jpg)
编写内容
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdv7eg2j30u30iu0un.jpg)
在handler中的方法对应好
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdvmziyj30w408cdgv.jpg)
启动Tomcat,访问
http://localhost:8080/learn-admin-webui/index.jsp
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdvza81j30in03naag.jpg)
点击超链接
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdwe7l7j31gx08vq4z.jpg)
写一个Base标签
<base href="http://${pageContext.request.serverName }:${pageContext.request.serverPort }${pageContext.request.contextPath }/"/>
需要注意的点
base 标签必须写在 head 标签内部
base 标签必须在所有“带具体路径”的标签的前面
serverName 部分 EL 表达式和 serverPort 部分 EL 表达式之间必须写”:”
serverPort 部分 EL 表达式和 contextPath 部分 EL 表达式之间绝对不能写”/”
原因:contextPath 部分 EL 表达式本身就是”/”开头如果多写一个”/”会干扰 Cookie 的工作机制
serverPort 部分 EL 表达式后面必须写”/”
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdx40pbj31fw0h4n09.jpg)
Ajax 请求
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdxuu90j30oh0i00w9.jpg)
前端发送过来,后端要处理的请求有两种:
普通请求:后端处理完成后返回页面,浏览器使用页面替换整个窗口中的
内容
Ajax 请求:后端处理完成后通常返回 JSON 数据,jQuery 代码使用 JSON 数据
对页面局部更新
引入js
准备js文件
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdyans2j30bt0gjgm1.jpg)
在index.jsp中,引入
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdytq55j31430ja0v3.jpg)
现在我们想发送数组到后台服务器
代码实现
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jdzjhiij30ti0ojq51.jpg)
Js
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1je08cdvj30o50megn4.jpg)
Ajax
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1je10c72j31ac0ipq5b.jpg)
编写Handler
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1je1ibzcj315p0i6wgk.jpg)
启动访问一下
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1je1xg60j31400hywf1.jpg)
后台也打印出来了
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1je2mgoyj30t20duzli.jpg)
这里一定要带上多出来的方括号!!!
结论:不建议采用这个方案!!!
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1je32m0rj30zs09d756.jpg)
再来一个Index.jsp
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1je3kot9j30u70hst9t.jpg)
Js
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1je41ct7j31630n5jts.jpg)
后台在learn-admin-entity中创建一个参数接收对象
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1je4q04sj30x80b2wfx.jpg)
添加类内容
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1je5hjtoj30rh0pbgne.jpg)
在handler中添加内容
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1je5yaosj30ye0nuwgh.jpg)
启动服务
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1je6gvbsj313l0in3zk.jpg)
后台输出
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1je6z768j30fe0bxmxq.jpg)
第三种实现
页面内容
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1je7kdxnj30r60nxjsu.jpg)
Js
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1je8266kj316r0ostcm.jpg)
Handler中
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1je9jxutj31500l040p.jpg)
启动服务访问
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jea31r6j313e0hmjsi.jpg)
后台输出
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jeakgqwj315e0os41n.jpg)
再体会下第三种的方式
learn-admin-entity中创建三个类
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jeaygxbj30c508agls.jpg)
依次添加,自己完成get和set方法
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jebiet5j318z0m1q4z.jpg)
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jec6qnij315f0kltaq.jpg)
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jecnyepj30xh0ly763.jpg)
编写jsp
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jed5vh5j30t70ojwg3.jpg)
Js文件
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jeds24ej30op0lrjse.jpg)
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jee8evvj30w00mbdh3.jpg)
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jeemu7ej30wr0l5myk.jpg)
完成handler
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jef3xeuj312a0kwwgh.jpg)
启动访问
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jefixflj312v0abjsl.jpg)
后台输出
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jegib1qj31c90mojv5.jpg)
统一返回数据格式
在learn-common-util新建类
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jegwhppj30az05dmx8.jpg)
编写类内容
ResultEntity
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jehbd27j315m0hntaw.jpg)
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jehrqzjj310n0lkdi2.jpg)
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jeia9zoj31450mdwgt.jpg)
CasUtils
修改handler中代码测试下返回类
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jeizlhcj31bj0i4q58.jpg)
启动页面访问
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jejfhuzj319j0bvjt8.jpg)
后台信息
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jejv9cuj31660e1766.jpg)
异常映射
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jekj0c8j30l20a4wfr.jpg)
首先在learn-admin-webui配置spring-web-mvc.xml
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jel77s5j319v0n2djf.jpg)
首先在learn-admin-webui创建system-error.jsp
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jelmtrpj30cn0h7q3f.jpg)
添加内容
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jem29oaj313c0jo76h.jpg)
测试下,写一个错误方法
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jemuvnbj30z30ou0vm.jpg)
页面跳转
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jeng8x3j30qq0e9wft.jpg)
查看效果
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jentcnqj30rz08ymxm.jpg)
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jeo7ktcj30ow081t98.jpg)
完成一个判断请求类型的工具方法
在learn-common-util新建
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jeow2wzj30dj07u0t0.jpg)
在learn-common-util中pom.xml中完成依赖
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jepmcc1j315k0hn40x.jpg)
然后完成CasUtils代码
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jeq2zmzj315j0pbjui.jpg)
测试一下,在handler中编写代码
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jeqjq7tj31ac0nyjv1.jpg)
页面添加
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jeqybpwj30w10l40um.jpg)
编写对应的js
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jerk3hsj30w30k6wfr.jpg)
启动服务查看
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jes7vfpj30p30cp0tq.jpg)
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jesokewj30sg0bhmy7.jpg)
再来看基于注解的
首先在learn-admin-component的com.xlgl.wzy.mvc.config包下
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jet3rqoj30f40ap74r.jpg)
完成代码
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jetqpyjj314p0o2q5p.jpg)
CommonResolve方法
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jeu8799j30z30h1gnm.jpg)
是ajax请求
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jeus0m7j316m0p3q64.jpg)
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jevbhlaj314d0pf42f.jpg)
测试一下
在handler中
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jew2jepj318a0nzwid.jpg)
在页面中
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jewhrbuj30y10nn40u.jpg)
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jewz2rvj31160k4wgp.jpg)
judgeResult=false
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jexqhbyj31f607xwfv.jpg)
judgeResult=true
![SpringBoot学习笔记三之表述层](https://image.baidu.com/search/down?thumburl=https://baidu.com&url=https://tva1.sinaimg.cn/large/0080xEK2gy1gj1jey3rswj31ey07gmyh.jpg)
最新评论
mat插件可以检测内存数据
标识接口?
序列化serializabel就是一个标识
就差一个MAC了
mark
除了预置sql查询字段,其他我竟然都没用过
可以,这个问题遇到过
mybatis多个参数: 1. 注解(最常用) 2. 转化为对象或MAP 3. 按顺序(这个最蠢,写的代码看得费劲) 单个参数需要注意得: 1.基本数据类型随便写 2.数组用array,l