Mybatis & Spring

Generate Project mvn archetype:generate -DgroupId=me.gacl -DartifactId=spring4-mybatis3 -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false Create three folder src/main/java src/test/resources src/test/java create sample db Create DATABASE spring4_mybatis3; USE spring4_mybatis3; DROP TABLE IF EXISTS t_user; CREATE TABLE t_user ( user_id char(32) NOT NULL, user_name varchar(30) DEFAULT NULL, user_birthday...

Mybatis 1 Getting Started

1 Getting started (1) Installation To use MyBatis you just need to include the mybatis-x.x.x.jar file in the classpath. OR Maven <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>x.x.x</version> </dependency> (2) Building SqlSessionFactory SqlSessionFactoryBuilder => SqlSessionFactory => SqlSession => MyBatis application instance. SqlSessionFactoryBuilder can...

Writing Collection

1 City Life More and more people are migrating to cities in search of a better life, but city life can be extremely difficult. Explain some of the difficulties of living in a city. How can governments make urban life...

setup docker

Build & Installation Docker Images: HERE Steps Description Commands 1 Install docker apt-get install docker.io 2 Launch service service docker.io status     service docker.io start 3 softe link ln -sf /usr/bin/docker.io /usr/local/bin/docker 4 import docker cat ubuntu14.tar    ...

TrinityCore

Build & Installation Docker Images: HERE Steps Description Commands 1 setup dev env sudo docker pull ubuntu:16.04     docker run -d –dns 8.8.8.8 –dns 8.8.4.4 -p 80:80 -v /home/ray:/home/ray –name=wow -h WOW ubuntu /bin/bash -c “while true;do sleep 1000;...