Skip to content

Instantly share code, notes, and snippets.

View dreambt's full-sized avatar

Baitao Ji dreambt

View GitHub Profile
#!/bin/sh
version="2.6.3"
priority="20603"
sudo mkdir -p /var/redis /var/log/redis
curl -sL http://redis.googlecode.com/files/redis-${version}.tar.gz | tar zx
cd redis-${version}/
make
sudo make PREFIX=/usr/local/redis/${version} install
@dreambt
dreambt / MyBatisSpring.xml
Created August 19, 2012 12:39
MyBatis Configuration with Spring
<!-- MyBatis配置 -->
<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
<property name="dataSource" ref="dataSource"/>
<property name="configLocation" value="classpath:/mapper/Configuration.xml"/>
<property name="typeAliasesPackage" value="cn.im47.cloud.storage.common.entity"/>
<property name="mapperLocations" value="classpath:/mapper/*Mapper.xml"/>
</bean>
<!-- scan for mappers and let them be autowired -->
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">