![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SSM
文章平均质量分 60
uj_
寒灯野火,明灭林外
展开
-
IDEA 整合 SSM
源码下载 需要 1 积分下载源码后,根据指导 搭建项目框架然后引入相关 文件执行 sql 运行最终 访问 controller 中定义的路径地址。默认访问 index.jsp 出现 hello word。...原创 2018-08-14 10:19:21 · 510 阅读 · 0 评论 -
Spring 表达式语言 SpEL
诞生描述使用基本的属性对象运算符诞生描述Spring 3.0 创建了一种新的配置对象注入的方式,简称(set注入或者构造参数注入) SpEL (Spring Expression Language)使用基本的属性x 可以是 整数,小数boolean ,科学计数法表示的小数(如:#{1e4}),“” Or ” 表示的字符串...原创 2018-08-02 22:18:56 · 158 阅读 · 0 评论 -
ssm 使用JSR303 校验表单数据
JSR303校验导入 Hibernate-Validator 依赖注意 : Tomcat7 及其以上的服务器中,有最新的 el表达式。对于低版本中,需要替换 lib中的标准 el最好使用较高版本 Tomcat加入依赖<dependency> <groupId>org.hibernate</groupId> <artifactI...原创 2018-09-23 19:22:08 · 673 阅读 · 0 评论 -
MyBatis 分页插件 PageHelper 使用方法
使用Github MyBatis 的使用 。pageHelper 参考文档pom.xml中导入依赖 <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> ...原创 2018-09-24 10:46:03 · 211 阅读 · 0 评论 -
SpringMVC : Controller层单元测试Mock
代码@RunWith(SpringJUnit4ClassRunner.class)@WebAppConfiguration@ContextConfiguration(locations = { "classpath:applicationContext.xml", "file:src/main/webapp/WEB-INF/dispatcherServlet-servlet.xml" }...原创 2018-09-24 11:51:45 · 1131 阅读 · 1 评论 -
SpringMVC 单元测试
测试类@RunWith(SpringJUnit4ClassRunner.class)@WebAppConfiguration@ContextConfiguration(locations = { "classpath:applicationContext.xml", "file:src/main/webapp/WEB-INF/dispatcherServlet-servlet.xml" ...原创 2018-09-27 22:59:50 · 7706 阅读 · 0 评论 -
mybatis 更新时为什么返回值是-1
mybatis 更新时为什么返回值是-1原因返回-1,是由于defaultExecutorType的引起的,defaultExecutorType有三个执行器SIMPLE、REUSE和BATCH。默认情况下,mybatis 的 update 操作返回值是记录的 matched 的条数,并不是影响的记录条数。将 MyBatis 中的 executorType 修改成 BATCH 【批量模式】后...原创 2018-10-29 09:49:53 · 10519 阅读 · 2 评论