Project Structure
If the project uses the relational database, cooperate with the Ibatis use, only needs to establish the database table to be OK, other will give the plug-in to do. Add in 1.pom file
1, add the following code in Pom.xml project>build, let MAVEN environment support Mybatis-generator component
org.mybatis.generator mybatis-generator-maven-plugin 1.3.2 < ;configuration> src/main/resources/generator.xml true true generate
This article will briefly introduce the INSERT, UPDATE, delete configuration and use, in the future will be the source of mybatis in-depth explanation.
Believe, see INSERT, UPDATE, Delete, we know its role, as the name implies, Myabtis as a
In recent project development, a lot of domain models have been used, (POJO refers only to setter/getter/tostring simple classes, including DO/DTO/BO/VO, etc.), and then encounters many scenarios where the model attributes are automatically
Write Association first, then write collection; this is determined by the dtd; ... > ... > Association > ... > >resultmap> MyBatis one-to-many, multi-pair Query when mapper order
The parameters of the MyBatis Mapper interface are generally an object, but what if it is not an object and has multiple parameters? Our first idea was to encapsulate the parameters into a java.util.Map type, and then write the key of the map on the
The mapping file is loaded via the mapper interface, which is important for the integration of the following SSM three Frameworks. So what is loading the mapping file via the mapper interface?We first look at the previous practice, in the global
EN "HTTP://IBATIS.APACHE.ORG/DTD/IBATIS-3-MAPPER.DTD" >
Resulttype= "" usecache= "true" flushcache= "true" timeout= "" fetchsize= ""Statementtype= "STATEMENT" resultsettype= "Forward_only" >StatementType can be set to
Before today, just heard mybatis, useless, has been used ibatis, at that time feel very simple, today the project used the mybatis,example of things, just took over, dizzy for a long time. Only now has learned how to generate classes and
The Insert method uses all properties as fields
@Test public
void Testinsert () {
user record=new User ();
Record.setname ("SanSan");
Use This.newUserMapper.insert (record) with all attributes as fields
;
}
Great deal. I was supposed to update it yesterday. As a result, I was too excited to receive my new focus phone yesterday and forgot my business. Sorry!
Directory address for this book Note: http://www.cnblogs.com/mdyang/archive/2011/06/29/data-intensive-text-prcessing-with-mapreduce-contents.htmlIntroduction
Mapreduce is very powerful because of its simplicity. Programmers only need to prepare the following elements:
Input data
Mapper and reducer
record contains a response time, the average response time needs to be calculated.
Solution:
Let's start with a simple example. In the following code snippet, mapper each encounter with a specified word, 1,reducer the frequency by traversing the collection of these words and then adding their frequency.
Class Mapper method Map (docid ID, doc D) to all term T in Doc D does Emit (term T, Count 1) class Reduc
Docker commit
Docker build
Docker build-t repo [: tag] is the same as above. You can specify a repo and an optional tag.
Docker build-
Docker port
Docker mounts the host machine directory to the docker container.
[Root @ linuxidc ~] # Docker run-t-I-v/root/convirt-install: /mnt/convirt docker.cn/docker/centos:centos5/bin/bash # mount the host directory to the container-t indicates that the Pseudo Terminal is allocated-I indicates that the host directory is run interactively-v indicates the
Reprinted from: yangguan. orgmapreduce-patterns-algorithms-and-use-cases translated from: highlyscalable. wordpress. in this article, com20120201mapreduce-patterns summarizes several common MapReduce models and algorithms on the Internet or in the paper, and systematically explains the differences between these technologies.
Reposted from: Workshop
Reposted from: Workshop. All descriptive text and code use the standard hadoop MapReduce model, including Mappers, CES, Combiners, Partitioners, and
First, provide the project structure:
Log4j. properties-log configuration file
DB. properties ---- connect to the database
Configure database connection Parameters
Mybatis/sqlmapconfig. xml --- mybatis core configuration file
Mybatis configuration item
Core configuration file of spring/applicationcontext. XML-à spring
Configure public content: data source and transaction management
Configure Dao in spring/applicationcontext-base-dao.xml à
Configure sqlsessionfactory and Dao (
When installing 11GR2 RAC on RHEL6.4, multipath is used to aggregate the disks that bind the multipath and modify the disk permissions to give Grid:asmadmin users and groups.At this point, the disks can be found at the time of installation and the logs areINFO: ... discoverystring =/dev/mapper/*info:executing [/tmp/orainstall2014-11-24_04-55-14pm/ext/bin/kfod, Nohdr=true, Verbose=true, Disks=all, status=true , Op=disks, asm_diskstring= '/dev/
DF, free disk, is used to display the disk usage of the file system. By default, the DF command will display all currently mounted file systems in each 1K unit, if you want to display the output of the DF command in a human readable format, such as "df-h" using the-H option.
In this article, we will discuss 11 different instances of the DF command under Linux.
The basic format of the DF command under Linux is:
Copy Code code as follows:
# DF {options} {Mount_point_of_filesyste
(improves I/O load capabilities ). You can access the Target device through multiple NICs. This improves the I/O capability. In the production environment, multipath is often used to implement LUN persistence and multi-path access. Note: There is a problem here. when we configure the target for storing multiple sessions, each Nic will generate a/dev/sd * device. This has been explained in yesterday's experiment. The lun device mentioned yesterday is immediately mapped to the available/dev/sd *
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.