当前位置: 首页 > news >正文

做ktv的网站淘宝客做网站好还是建群号

做ktv的网站,淘宝客做网站好还是建群号,ps怎么做网站页面,做海报找图片的网站最近一直是以自学的状态#xff0c;想把自己学习到的知识分享给大家 #xff0c;也是好久没有写博客了。废话不多说 #xff0c;直接上代码。本次项目是 用maven 管理的.开发工具 eclipse在pom.xml文件中#xff0c;中关于redis的配置#xff1a;org.springframework.data…最近一直是以自学的状态想把自己学习到的知识分享给大家 也是好久没有写博客了。废话不多说 直接上代码。本次项目是 用maven 管理的.开发工具 eclipse在pom.xml文件中中关于redis的配置org.springframework.dataspring-data-redis1.0.2.RELEASEredis.clientsjedis2.1.0在 applicationContext.xml 中关于redis的配置?xml version1.0 encodingUTF-8?xmlns:xsihttp://www.w3.org/2001/XMLSchema-instance xmlns:contexthttp://www.springframework.org/schema/contextxmlns:aophttp://www.springframework.org/schema/aop xmlns:txhttp://www.springframework.org/schema/txxsi:schemaLocationhttp://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-3.0.xsdhttp://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context-3.0.xsdhttp://www.springframework.org/schema/aophttp://www.springframework.org/schema/aop/spring-aop-3.0.xsdhttp://www.springframework.org/schema/txhttp://www.springframework.org/schema/tx/spring-tx-3.0.xsd在web.xml?xml version1.0 encodingUTF-8?xmlnshttp://java.sun.com/xml/ns/javaeexsi:schemaLocationhttp://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsdversion3.0Archetype Created Web ApplicationcontextConfigLocationclasspath:spring-mybatis.xml,classpath:applicationContext.xmlencodingFilterorg.springframework.web.filter.CharacterEncodingFiltertrueencodingUTF-8encodingFilter/*org.springframework.web.context.ContextLoaderListenerorg.springframework.web.util.IntrospectorCleanupListenerSpringMVCorg.springframework.web.servlet.DispatcherServletcontextConfigLocationclasspath:spring-mvc.xml1trueSpringMVC//index.jsp由于是入门的很简单的demo ,所以直接在 写Controllerpackage com.basessm.controller;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.data.redis.core.StringRedisTemplate;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.RequestMapping;ControllerRequestMapping(redis)public class RedisController {Autowiredprivate StringRedisTemplate redisTemplate;// redis操作模板RequestMapping(test1)public void test1() {redisTemplate.opsForValue().set(fruit3,apple3);System.out.println(success1);}RequestMapping(test2)public void test2() {redisTemplate.opsForValue().set(aliceWang,alice2);String a redisTemplate.opsForValue().get(aliceWang);System.out.println(success2);System.out.println(a: a);}}这样就已经完成了一个 很基础很简单的 demo了在运行项目之前一定要记得先把redis-server 启动起来
http://www.huolong8.cn/news/225896/

相关文章:

  • 谷歌网站网址电脑编程网站
  • 厨具网站模板wordpress后台菜单添加设置按钮
  • html网站的直播怎么做的百度的主页
  • 私人订制旅游网站建设wordpress 反向代理
  • 上海定制建站网站建设深圳市龙岗网络科技有限公司
  • 佛山顺德容桂网站制作广州市民政局网站建设
  • 成品网站1688入口wordpress 验证密码
  • 南昌网站建设的流程网站后台如何添加新闻
  • 手机端的网站首页该怎么做公司网站点击量如何看
  • 网站运营年度推广方案深圳制作网站培训学校
  • 移动手机网站建设做网站的哪家好
  • 做柜子的常去的网站个人简介网页怎么做
  • 仿站WordPress个人网站的建设
  • 中文网站建设中模板下载南通网络推广公司
  • 网站建站建设上海黔文信息科技有限公司30有创意的包装设计
  • 长春市建设信息网站大连哪个企业想做网站
  • 邢台网站制作公司绿标短网址生成
  • 建设静态网站工具wamp建设网站大致步骤
  • 长沙网站开发方案哪个网站的品牌特卖做的好
  • 网络推广 SEO优化 网站建设做医疗网站需要
  • 怎么制作网站导航页无法进入建设银行网站
  • 做网站需要前台和后台吗仿牌外贸网站推广
  • 做图片网站侵权吗erp管理系统多少钱
  • 国内网站做国外服务器安卓优化大师官方下载
  • 国外 图片网站深圳国内网站设计公司
  • 网站的 营销渠道的建设石家庄建设网站公司
  • 南宁网站建设方案报价微盟小程序商城
  • 医疗器械外贸网站建设wordpress 引用 格式
  • 成都大型网站建设可以查企业备案的网站吗
  • 北京做网站报价自己做的网站手机不能看