随笔分类 -  4、框架篇

spring、springmvc、Struts2、hibernate、mybatis.SSH+SSM
摘要:一、概述 MyBatis中在查询进行select映射的时候,返回类型可以用resultType,也可以用resultMap,resultType是直接表示返回类型的,而resultMap则是对外部ResultMap的引用,但是resultType跟resultMap不能同时存在。 在MyBatis进 阅读全文
posted @ 2017-09-23 18:24 青春不再见 阅读(2628) 评论(0) 推荐(0)
摘要:Mybatis通用Mapper 目录(?)[+] 极其方便的使用Mybatis单表的增删改查 优点 如何使用 引入通用Mapper的代码 配置Mapper拦截器 继承通用的MapperT必须指定泛型T 泛型实体类T的类型必须符合要求 将继承的Mapper接口添加到Mybatis配置中 代码中使用 关 阅读全文
posted @ 2017-07-28 15:36 青春不再见 阅读(365) 评论(0) 推荐(0)
摘要:今天,测试给我说在之前处理好的bug又重现了。我看了一下,原来就是hibernate缓存的问题 上图解说,因为收藏的功能是我做的,在点击收藏按钮的时候,会出现影响状态现象 新发布的的访谈和口述,非发布者点击详情的收藏按钮,下拉刷新一下,当前发布的内容消失不见,在我的发布中,主题状态显示为“审核中” 阅读全文
posted @ 2017-07-21 15:18 青春不再见 阅读(1396) 评论(0) 推荐(0)
摘要:/* * Copyright 2002-2015 the original author or authors.// * 2002 - 2015年版权所有作者或作者 * Licensed under the Apache License, Version 2.0 (the "License"); * 阅读全文
posted @ 2017-07-04 17:41 青春不再见 阅读(1511) 评论(0) 推荐(0)
摘要:官方文档:@RestController is a stereotype annotation that combines @ResponseBody and @Controller.意思是:@RestController注解相当于@ResponseBody + @Controller合在一起的作用 阅读全文
posted @ 2017-06-29 10:30 青春不再见 阅读(202) 评论(0) 推荐(0)
摘要:大家好,相信Java高级工程师对spring框架都很了解吧!那么我以个人的观点总结一下spring,希望大家有所帮助。 一、内容纲要 1、spring的起源和背景 2、spring简介 3、spring的核心模块 4、springIOC和AOP 5、为什么要使用spring 6、spring的目的? 阅读全文
posted @ 2016-12-06 16:28 青春不再见 阅读(5136) 评论(1) 推荐(0)