- 博客(13)
- 资源 (5)
- 收藏
- 关注
转载 MyBatis 中的@Param 注解
I try to make batch insert into table at Oracle database using MyBatis (integrated with Spring) .It is a definition of method in mapper interface:public void savePayments(@Param("payments") List
2016-02-29 13:25:32 4076
转载 Mybatis 批量插入的方法
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://programmer.blog.51cto.com/2859493/1129875网上太多关于mybatis配置批量插入的文章了,大都是我写的第一种mysql配置,由于我使用的是Oracle数据库,原来对Oracle的批次插入不太了解,所以按照mysql的配置信息测试了
2016-02-29 13:23:20 554
转载 scala抽象类型
(通过一个例子来说明抽象类型的用法,假定你需要为动物的饮食习性建模, 你可能会定义如下的数据结构:class Foodabstract class Animal { def eat(food: Food)}然后呢可能需要实现两个不同的实类对于与牛和草 Cows和Grassclass Grass extends Foodclass Cow extends Animal {
2016-02-27 16:04:40 505
转载 使用 Java 配置进行 Spring bean 管理
概述众所周知,Spring 框架是控制反转 (IOC) 或依赖性注入 (DI) 模式的推动因素,而这种推动是通过基于容器的配置实现的。过去,Spring 允许开发人员使用基于 XML 的配置,通过利用应用程序上下文 XML 文件来管理 bean 依赖性。此文件处于应用程序的外部,包含 bean 及其与该应用程序的依赖项的定义。尽管使用 XML 配置较为简单和便捷,但仍有另外一种方法可定义
2016-02-25 13:46:17 526
转载 hadoop 中的一个属性及启示
1. Hadoop+HBase cluster on windows: winutils not foundWhen trying to start hbase from my master (./bin/start-hbase.sh), I get the following error:.......We've found it. So, in
2016-02-25 13:36:49 1413
转载 View RDD contents in Python Spark
Running a simple app in pyspark.f = sc.textFile("README.md")wc = f.flatMap(lambda x: x.split(' ')).map(lambda x: (x, 1)).reduceByKey(add)I want to view RDD contents using foreach action:wc.fo
2016-02-25 13:30:33 537
转载 Configuring IPython Notebook Support for PySpark
Apache Spark is a great way for performing large-scale data processing. Lately, I have begun working with PySpark, a way of interfacing with Spark through Python. After a discussion with a coworker,
2016-02-25 13:11:20 598
转载 windows命令行下查看进程号
win2k/xp怎么样在命令行中查看当前进程,关闭当前某个进程? tasklist 杀进程taskkill /pid 程序的PID号码 tasklist | find "关键字" 可以对结果进行过滤,find相当于linux下的grep,后面的关键字要加引号。
2016-02-25 13:07:09 13766
转载 Lambda, filter, reduce and map[pthon]
Lambda OperatorSome like it, others hate it and many are afraid of the lambda operator. We are confident that you will like it, when you have finished with this chapter of our tutorial. If not,
2016-02-25 13:04:25 873
转载 maven Assembly Basics
Apache Maven Assembly Plugin 文档assembly:assemblyFull name:org.apache.maven.plugins:maven-assembly-plugin:2.6:assemblyThis plugin goal has been deprecated:Use assembly:single instead!
2016-02-22 15:25:00 505
转载 spring中的DispatcherServlet
1、DispatcherServlet作用DispatcherServlet是前端控制器设计模式的实现,提供Spring Web MVC的集中访问点,而且负责职责的分派,而且与Spring IoC容器无缝集成,从而可以获得Spring的所有好处。 具体请参考第二章的图2-1。 DispatcherServlet主要用作职责调度工作,本身主要用于控制流程,主要职责如下:
2016-02-19 17:47:40 626
转载 Spring ContextLoaderListener And DispatcherServlet Concepts
In Spring Web Applications, there are two types of container, each of which is configured and initialized differently. One is the "Application Context" and the other is the "Web Application Context".
2016-02-19 17:42:23 573
转载 What does ContextLoaderListener do in Spring?
In web.xml, there is usually the following line org.springframework.web.context.ContextLoaderListenerSo what does ContextLoaderListener do exactly?As the Spring API puts it:B
2016-02-19 17:40:36 437
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人