一、java memcached client的jar包下载地址:https://github.com/gwhalin/Memcached-Java-Client/downloads
二、cd java_memcached-release_2.6.6解压的文件夹: cd E:\JavaWeb\javaSoft\linux环境\java_memcached-release_2.6.6
三、执行mvn install 命令:mvn install:install-file -Dfile=java_memcached-release_2.6.6.jar -DgroupId=com.danga -DartifactId=memcached -Dversion=2.6.6 -Dpackaging=jar -DgeneratePom=true
四、项目引用:
在pom中添加lib依赖: <dependency> <groupId>com.danga</groupId> <artifactId>memcached</artifactId> <version>2.6.6</version> </dependency>