public Long getCreationCounter() {
String host =PropertyUtils.getPropertyValue("redis.server.host");
String port =PropertyUtils.getPropertyValue("redis.server.port");
String password =PropertyUtils.getPropertyValue("redis.server.password");
jedis = new Jedis(host,Integer.parseInt(port));
if(password != null && password.length()>0){
jedis.auth(password);
}
String count = jedis.get(REDIS_COUNT_STROAGEEVIDENCE);
jedis.close();
return Long.parseLong(count);
}
<select id="getCount" resultType="long">
select count(1) from m_storage_evidence
</select>
    @Override
public long getCount() throws ServiceException {
// TODO Auto-generated method stub
return stroageEvidenceMapper.getCount(); } @Override
public void executeStroageEvidenceCount() throws ServiceException {
// TODO Auto-generated method stub
Long count = getCount();
System.out.println(CybMain.properties_version);
String host =PropertiesUtils.getValueByKey(CybMain.properties_version, "redis.server.host");
String port =PropertiesUtils.getValueByKey(CybMain.properties_version, "redis.server.port");
String password = PropertiesUtils.getValueByKey(CybMain.properties_version, "redis.server.password");
jedis = new Jedis(host,Integer.parseInt(port));
if(password != null && password.length()>0){
jedis.auth(password);
}
jedis.set("countStroageEvidence", count+"");
jedis.close(); }

最新文章

  1. 下拉框-ComboBox
  2. Selenium FF WebDriver运行时开启firebug的2种方式
  3. 关于JDK的配置
  4. 京东2017 C++一面
  5. 如何“任性”使用Android的drawText()
  6. 8,SSO,,eager copy,COW
  7. RH033读书笔记(9)-Lab 10 Understanding the Configuration Tools
  8. 使用Chrome DevTools的Timeline和Profiles提高Web应用程序的性能
  9. esri-leaflet入门教程(5)- 动态要素加载
  10. 浏览器未安装flash插件,js判断直接去官网安装
  11. 字典树trie
  12. Linux 使用 top 命令查看系统的运行情况
  13. mtu简单说明
  14. 地图api
  15. Java 就业班 Web框架
  16. 安装Jade
  17. css布局记录之双飞翼布局、圣杯布局
  18. drupal7 覆写node-type.tpl.php获取字段值的两种方式
  19. Web自动化测试框架Watir(基于Ruby) - 第2章 使用Watir写自动化测试脚本
  20. 程序员必看:给你一份详细的Spring Boot知识清单

热门文章

  1. luogu P4146 序列终结者
  2. https://leetcode.com/problems/palindromic-substrings/description/
  3. 617. Merge Two Binary Trees
  4. 搭建OpenResty(Nginx+Lua)
  5. Android学习之基础知识二(build.gradle文件详解)
  6. jdk和cglib简单理解
  7. 1-微信小程序开发(安装软件和运行第一个微信小程序)
  8. 分析网络流量Capsa笔记
  9. 在IIS上部署你的ASP.NET Core项目 (转载)
  10. 介绍一个axios调试好用的工具:axios-mock-adapter