mybatis别名设置 在具体的mapper.xml文件中,定义很多的statement,statement需要parameterType指定输入参数的类型、需要resultType指定输出结果的映射类型。 一.mybatis默认支持别名 别名 映射的类型 _byte byte _long long ...
分类:
编程语言 时间:
2017-06-20 18:10:53
阅读次数:
2836
< < 小于号 > > 大于号 & & 和 ' ’ 单引号 " " 双引号 ...
分类:
其他好文 时间:
2017-06-20 17:57:11
阅读次数:
101
一、添加依赖<!--mybatis-开始-->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<..
分类:
编程语言 时间:
2017-06-20 14:42:52
阅读次数:
623
一.mybatis-spring.xml中配置: 1>.<!--配置扫描包 --> <context:component-scan base-package="com.bd"></context:component-scan> 2>.配置数据源; <bean id="mydataSource" cl ...
分类:
其他好文 时间:
2017-06-20 13:41:26
阅读次数:
175
1. Interceptor 就是个接口,供其它插件实现这个接口有三个方法 Object intercept(Invocation invocation)throws Throwable; 传入一个Invocation 对象,我猜应该是指定拦截具体某个target的某个方法 这里面应该写具体的拦截策 ...
分类:
其他好文 时间:
2017-06-20 11:36:02
阅读次数:
129
分布式 分布式服务:Dubbo+Zookeeper+Proxy+Restful 分布式消息中间件:KafKa+Flume+Zookeeper 分布式缓存:Redis 分布式文件:FastDFS 负载均衡:Keepalived+Nginx+Proxy(三重负载) 欢迎大家一起学习研究相关... ...
分类:
编程语言 时间:
2017-06-19 15:16:41
阅读次数:
415
mybatis mapper xml文件配置resultmap时,id行和result行有什么区别? <resultMap id = "CashInvoiceMap" type="com.dfire.soa.invoice.bo.Invoice"> <id column="id" property= ...
分类:
移动开发 时间:
2017-06-19 13:15:08
阅读次数:
1936