This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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"> |