<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[hello_xusir的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/hello_xusir</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; hello_xusir]]></copyright><item><title><![CDATA[错误：HttpServlet was not found on the Java]]></title><link>https://blog.youkuaiyun.com/hello_xusir/article/details/53424287</link><guid>https://blog.youkuaiyun.com/hello_xusir/article/details/53424287</guid><author>hello_xusir</author><pubDate>Thu, 01 Dec 2016 17:43:05 +0800</pubDate><description><![CDATA[http://jingyan.baidu.com/article/f79b7cb34f40569144023ef9.html]]></description><category></category></item><item><title><![CDATA[MyBatis学习——实现关联表查询]]></title><link>https://blog.youkuaiyun.com/hello_xusir/article/details/53424278</link><guid>https://blog.youkuaiyun.com/hello_xusir/article/details/53424278</guid><author>hello_xusir</author><pubDate>Thu, 01 Dec 2016 17:41:41 +0800</pubDate><description><![CDATA[一、一对一关联
 1.1、提出需求
　　根据班级id查询班级信息(带老师的信息)
1.2、创建表和数据
　　创建一张教师表和班级表，这里我们假设一个老师只负责教一个班，那么老师和班级之间的关系就是一种一对一的关系。


 1 CREATE TABLE teacher(
 2     t_id INT PRIMARY KEY AUTO_INCREMENT, 
 3     t_name]]></description><category></category></item><item><title><![CDATA[MyBatis使用Collection查询多对多或一对多结果集bug]]></title><link>https://blog.youkuaiyun.com/hello_xusir/article/details/53424257</link><guid>https://blog.youkuaiyun.com/hello_xusir/article/details/53424257</guid><author>hello_xusir</author><pubDate>Thu, 01 Dec 2016 17:40:09 +0800</pubDate><description><![CDATA[情况描述:当使用JOIN查询,如果SQL查询出来的记录不是按id列排序的,则生成的List结果会有问题
案例:
1) 数据库模型

简而言之一个Goods包含多个Goods_Img
 
2) Java Bean
Goods.java


public class Goods {

    private Integer goodsId;

    private String ]]></description><category></category></item><item><title><![CDATA[mybatis关联查询问题(一对多、多对一)]]></title><link>https://blog.youkuaiyun.com/hello_xusir/article/details/53424236</link><guid>https://blog.youkuaiyun.com/hello_xusir/article/details/53424236</guid><author>hello_xusir</author><pubDate>Thu, 01 Dec 2016 17:38:35 +0800</pubDate><description><![CDATA[mybatis 提供了高级的关联查询功能，可以很方便地将数据库获取的结果集映射到定义的Java
Bean 中。下面通过一个实例，来展示一下Mybatis对于常见的一对多和多对一关系复杂映射是怎样处理的。
设计一个简单的博客系统，一个用户可以开多个博客，在博客中可以发表文章，允许发表评论，可以为文章加标签。博客系统主要有以下几张表构成：
Author表：作者信息表，记录作者的信息，用户名和密码]]></description><category></category></item><item><title><![CDATA[Mybatis 高级结果映射 ResultMap Association Collection]]></title><link>https://blog.youkuaiyun.com/hello_xusir/article/details/53424189</link><guid>https://blog.youkuaiyun.com/hello_xusir/article/details/53424189</guid><author>hello_xusir</author><pubDate>Thu, 01 Dec 2016 17:36:58 +0800</pubDate><description><![CDATA[转：http://blog.youkuaiyun.com/ilovejava_2010/article/details/8180521
高级结果映射
MyBatis的创建基于这样一个思想：数据库并不是您想怎样就怎样的。虽然我们希望所有的数据库遵守第三范式或BCNF（修正的第三范式），但它们不是。如果有一个数据库能够完美映射到所有应用程序，也将是非常棒的，但也没有。结果集映射就是MyBatis为解决这些问题]]></description><category></category></item><item><title><![CDATA[mybatis Association标签 column属性应对多值的情况]]></title><link>https://blog.youkuaiyun.com/hello_xusir/article/details/53424168</link><guid>https://blog.youkuaiyun.com/hello_xusir/article/details/53424168</guid><author>hello_xusir</author><pubDate>Thu, 01 Dec 2016 17:35:39 +0800</pubDate><description><![CDATA[本文章已收录于：



Association元素




Association元素处理“has-one”（一对一）这种类型关系。比如在我们的例子中，一个Blog有一个Author。联合映射与其它的结果集映射工作方式差不多，指定property、column、javaType（通常MyBatis会自动识别）、jdbcType（如果需要）、typeHandler。
不同的地方是]]></description><category></category></item><item><title><![CDATA[MyBatis的动态SQL详解]]></title><link>https://blog.youkuaiyun.com/hello_xusir/article/details/53424148</link><guid>https://blog.youkuaiyun.com/hello_xusir/article/details/53424148</guid><author>hello_xusir</author><pubDate>Thu, 01 Dec 2016 17:34:09 +0800</pubDate><description><![CDATA[MyBatis的动态SQL详解
            
    
    博客分类： mybatis 
        MyBatis动态SQLwhere<a
 href="http://www.iteye.com/blogs/tag/foreach">foreach&nbsp;
     
    
    
  
      


  
    
http://]]></description><category></category></item><item><title><![CDATA[SSM框架——详细整合教程（Spring+SpringMVC+MyBatis）]]></title><link>https://blog.youkuaiyun.com/hello_xusir/article/details/53423942</link><guid>https://blog.youkuaiyun.com/hello_xusir/article/details/53423942</guid><author>hello_xusir</author><pubDate>Thu, 01 Dec 2016 17:21:33 +0800</pubDate><description><![CDATA[SSM框架——详细整合教程（Spring+SpringMVC+MyBatis）



2015-03-19 11:44 
476752人阅读 评论(328)
收藏
举报


本文章已收录于：




分类： 
Spring MVC（28） 



作者同类文章X







目录(?)[+]

基本概念

1Spring2Sprin]]></description><category></category></item><item><title><![CDATA[SSM框架——使用MyBatis Generator自动创建代码]]></title><link>https://blog.youkuaiyun.com/hello_xusir/article/details/53423922</link><guid>https://blog.youkuaiyun.com/hello_xusir/article/details/53423922</guid><author>hello_xusir</author><pubDate>Thu, 01 Dec 2016 17:20:24 +0800</pubDate><description><![CDATA[SSM框架——使用MyBatis Generator自动创建代码



标签： 
mybatismybatis-generatorssm自动创建代码

2014-04-17 10:18 
78163人阅读 评论(93)
收藏
举报


本文章已收录于：




分类： 
J2EE（9） 



作者同类文章X






版权声明：本文为]]></description><category></category></item><item><title><![CDATA[Mybatis使用generator自动生成映射配置文件信息]]></title><link>https://blog.youkuaiyun.com/hello_xusir/article/details/53423909</link><guid>https://blog.youkuaiyun.com/hello_xusir/article/details/53423909</guid><author>hello_xusir</author><pubDate>Thu, 01 Dec 2016 17:19:21 +0800</pubDate><description><![CDATA[使用mybatis配置映射文件比较的麻烦，但是有自动生成jar工具，方便加速开发速度，下面主要是该工具的使用以及相关的配置。
    1、下载相关的资源
         我们需要下载mybatis-generator-core-1.3.2.jar，MySQL-connector-Java-5.1.34.jar（对应相关数据库的驱动包），generator.xml（配置文件）
      我]]></description><category></category></item><item><title><![CDATA[mybatis generator,报错XML Parser Error on line 1:前言中不能有内容,]]></title><link>https://blog.youkuaiyun.com/hello_xusir/article/details/53423883</link><guid>https://blog.youkuaiyun.com/hello_xusir/article/details/53423883</guid><author>hello_xusir</author><pubDate>Thu, 01 Dec 2016 17:17:52 +0800</pubDate><description><![CDATA[不要用记事本换成UTF-8格式的  会有个BOM头  JAVA读取的时候就会报错了]]></description><category></category></item><item><title><![CDATA[持久化框架】Mybatis与Hibernate的详细对比]]></title><link>https://blog.youkuaiyun.com/hello_xusir/article/details/53423855</link><guid>https://blog.youkuaiyun.com/hello_xusir/article/details/53423855</guid><author>hello_xusir</author><pubDate>Thu, 01 Dec 2016 17:16:12 +0800</pubDate><description><![CDATA[前言

这篇博文我们重点分析一下Mybatis与hibernate的区别，当然在前面的博文中我们已经深入的研究了Mybatis和Hibernate的原理。

Mybatis

【持久化框架】Mybatis简介与原理【持久化框架】SpringMVC+Spring4+Mybatis3集成，开发简单Web项目+源码下载

Hibernate

【SSH进阶之路】Hibernate基本]]></description><category></category></item><item><title><![CDATA[Maven中使用mybatis]]></title><link>https://blog.youkuaiyun.com/hello_xusir/article/details/53423846</link><guid>https://blog.youkuaiyun.com/hello_xusir/article/details/53423846</guid><author>hello_xusir</author><pubDate>Thu, 01 Dec 2016 17:15:32 +0800</pubDate><description><![CDATA[1、Mybatis优缺点
优点： Mybatis实现了对Dao层的封装，隔离了SQL语句，便于管理，避免了像JDBC那样操作数据集，便于扩展等等。
缺点： Mybatis属于?半自动“ORM”，比Hibernate的工作做得要多很多，对象参数传递比较麻烦，没有Hibernate对象操作的概念。
2、Mybatis的实现方式 
Mybatis提供两种应用实现：XML配置和注解。
2.1配置]]></description><category></category></item><item><title><![CDATA[C# 利用QRCode生成二维码图片]]></title><link>https://blog.youkuaiyun.com/hello_xusir/article/details/53423816</link><guid>https://blog.youkuaiyun.com/hello_xusir/article/details/53423816</guid><author>hello_xusir</author><pubDate>Thu, 01 Dec 2016 17:12:06 +0800</pubDate><description><![CDATA[~_~一个程序员的淘宝店： 点击打开链接

网上生成二维码的组件是真多，可是真正好用的，并且生成速度很快的没几个，QRCode就是我在众多中找到的，它的生成速度快。但是网上关于它的使用说明，真的太少了，大都是千篇一律的复制粘贴。这是本要用它做了一个项目后，简单的整理了一下。
组件下载地址：http://download.youkuaiyun.com/detail/lybwwp/6861821


]]></description><category></category></item><item><title><![CDATA[isDebugEnabled 、isInfoEnabled 为啥要使用]]></title><link>https://blog.youkuaiyun.com/hello_xusir/article/details/53423769</link><guid>https://blog.youkuaiyun.com/hello_xusir/article/details/53423769</guid><author>hello_xusir</author><pubDate>Thu, 01 Dec 2016 17:09:28 +0800</pubDate><description><![CDATA[isDebugEnabled 、isInfoEnabled 为什么要使用
以前一直不明白为什么在输出日志前必须使用：
if (log.isDebugEnabled())？？？
在看下面的解释之前，我先说明下，对于打印的信息没有字符拼接或者对象（说白了没有tostring的方法调用），如果打印的信息是固定字符串的话，就加上面的判断和不加其实意义是一样的（更说白了，就是节省log.debug(*]]></description><category></category></item><item><title><![CDATA[TortoiseSVN和Eclipse中subversion无法协同使用]]></title><link>https://blog.youkuaiyun.com/hello_xusir/article/details/53423749</link><guid>https://blog.youkuaiyun.com/hello_xusir/article/details/53423749</guid><author>hello_xusir</author><pubDate>Thu, 01 Dec 2016 17:08:36 +0800</pubDate><description><![CDATA[环境:

Eclipse版本Luna, 第一次安装subversion插件时, 使用了http://download.eclipse.org/releases/luna中的Subversive, 版本为2.0, 说明上写着兼容1.x版本. 

而TortoiseSVN版本是1.8, 其对应的subversion为1.8.11.

 

症状:

使用结果是, 单独使用Torto]]></description><category></category></item><item><title><![CDATA[Java线程学习笔记CountDownLatch 和CyclicBarrier]]></title><link>https://blog.youkuaiyun.com/hello_xusir/article/details/53423740</link><guid>https://blog.youkuaiyun.com/hello_xusir/article/details/53423740</guid><author>hello_xusir</author><pubDate>Thu, 01 Dec 2016 17:08:02 +0800</pubDate><description><![CDATA[CountDownLatch ：

一个同步辅助类，在完成一组正在其他线程中执行的操作之前，它允许一个或多个线程一直等待。 
用给定的计数 初始化 CountDownLatch。由于调用了 countDown() 
方法，所以在当前计数到达零之前，await 
方法会一直受阻塞。之后，会释放所有等待的线程，await 
的所有后续调用都将立即返回。这种现象只出现一次——计数无法被重置。]]></description><category></category></item><item><title><![CDATA[MySQL临时表的简单用法]]></title><link>https://blog.youkuaiyun.com/hello_xusir/article/details/53423725</link><guid>https://blog.youkuaiyun.com/hello_xusir/article/details/53423725</guid><author>hello_xusir</author><pubDate>Thu, 01 Dec 2016 17:06:55 +0800</pubDate><description><![CDATA[当工作在非常大的表上时，你可能偶尔需要运行很多查询获得一个大量数据的小的子集，不是对整个表运行这些查询，而是让MySQL每次找出所需的少数记录，将记录选择到一个临时表可能更快些，然后在这些表运行查询。

创建临时表很容易，给正常的CREATE TABLE语句加上TEMPORARY关键字：
CREATE TEMPORARY TABLE tmp_table (
	name VARCHAR(10)]]></description><category></category></item><item><title><![CDATA[Java 类注释模板]]></title><link>https://blog.youkuaiyun.com/hello_xusir/article/details/53423708</link><guid>https://blog.youkuaiyun.com/hello_xusir/article/details/53423708</guid><author>hello_xusir</author><pubDate>Thu, 01 Dec 2016 17:05:36 +0800</pubDate><description><![CDATA[英文模板：

 

/**   
 *  
 * Simple to Introduction  
 * @ProjectName:  [${project_name}] 
 * @Package:      [${package_name}.${file_name}]  
 * @ClassName:    [${type_name}]   
 * @Description:]]></description><category></category></item><item><title><![CDATA[ExecutorService常用方法和newFixedThreadPool创建固定大小的线程池]]></title><link>https://blog.youkuaiyun.com/hello_xusir/article/details/53423645</link><guid>https://blog.youkuaiyun.com/hello_xusir/article/details/53423645</guid><author>hello_xusir</author><pubDate>Thu, 01 Dec 2016 17:01:17 +0800</pubDate><description><![CDATA[1、ExecutorService：

是一个接口，继承了Executor:

public interface ExecutorService extends Executor {
}


2、Executor：

而Executor亦是一个接口，该接口只包含了一个方法：

void execute(Runnable command);


3、Executors：]]></description><category></category></item></channel></rss>