- 浏览: 152360 次
- 性别:
- 来自: 成都
最新评论
-
Dtscal:
都不会了
mysql 查询开始、结束时间差,并进行时间汇总 -
kqzl67890:
弄个效果图出来看哈撒
jquery设置table 鼠标移动、离开、点击样式,同时css设置table滚动条(访tablePanel) -
kqzl67890:
兰州烧饼...
mysql 查询开始、结束时间差,并进行时间汇总 -
SE7EN:
thanks
hadoop 文档:Hadoop开发者下载 -
zhangpurple:
...
jquery树
文章列表
根据父节点id(teamsid) 统计为0的根数据列表,同时将子数据整个在父数据列表里
SELECT
id,endtime,teamsid,companyName,companyCity,
(select group_concat(companyName separator ',') from mshop_supply_teambuy m1
where m1.teamsid = m.id) cName_child,
(select group_concat(companyCity separator ',') from mshop_supply ...
Access-Control-Allow-Origin: *, * 前后端出现跨域问题
出现一颗 * 就通过后台过滤设置响应
/////////////////////////CORSFilter
public class CORSFilter implements Filter{ //里设置
@Override
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
throws IOException ...
java通过pid、parentId生成tree树形结构json集合将pojo集合类根据pid自动生成树形json以下为代码示例,参照网上进行调整过后的,应用于项目
////////////////////////////////////////BuildUICmb
package com.hbcw.finance.main.utils.UICmb;
import java.util.ArrayList;
import java.util.List;
/**
* 构建前端需要的树形结构字符串 @备注:
*
* @author: lili
...
关于java连接habse所需要的jar包,经查直接就在hbase的安装目录下的libs里就有相关的jar包,直接复制出来,引用即可以使用
netstat -apn | grep 8080
[root@centos122 bin]# netstat -apn | grep 8080 查看8080端口占用
tcp 0 0 :::8080 :::* LISTEN 11421/java
tcp 1002 0 ::ffff:10.0.1.122:8080 ::ffff:10.0.1.180:65000 CLOSE_WAIT - ...
select a.id,a.start_time,a.online_time,a.end_time,a.user_id
from
(
SELECT id,start_time,online_time,end_time,user_id
FROM logonlinetb
where
businessId = '05051357441470000'
and group_id = '11071459147070001'
ORDER BY end_time DESC
) a
GROUP BY a.user_id
其中,start_time为开始时间online_time为在线时长,end_t ...
(select count(id) as num from con_logs_2018_01_10 where uid = '12081427281340000' )
union all
(select count(id) as num from con_logs_2018_01_09 where uid = '12081427281340000')
在日志分表后,需要统计 该用户的日志记录信息,需要查询多分表,但无关联关系
function getAllChildIds(treeNode,result){
if (treeNode.isParent){
var childrenNodes = treeNode.children;
if (childrenNodes) {
for (var i = 0; i < childrenNodes.length; i++) {
result += ',' + childrenNodes[i].id;
// console.log(result);
result = getAllChildIds(childrenNodes[i], ...
mysql hibernate SessionFactory 8 小时数据库连接关闭错误解决方案:
可以通过SessionFactory获得连接,判断是否关闭,关闭了就重新打开。
package org.dj.model;
import java.sql.SQLException;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import org.hibernate.connection ...
String url = "jdbc:mysql://10.0.1.123:3306/cadmin_hucheng?autoReconnect=true&useUnicode=true&characterEncoding=utf-8";
String userName = "root";
String password = "hskj2015";
String driver = "com.mysql.jdbc.Driver";
try {
Class.forName(driver);
C ...
//////////////////////////////////////////////////////////通过字节流获得数据
public class SocketClient {
private static String encoding = "GBK";
public static void main(String[] args) {
SocketClient c = new SocketClient();
c.getInfo("A2", "00000058");
System.exit( ...
/////////jdbc连接操作
private static String url;
/**
* 用户名
*/
private static String userName;
/**
* 密码
*/
private static String password;
private static String driver;
// 连接池
private static int max = 20;
private static int min = 2;
private static int count = 0;
private static Lis ...
package com.hskj.operateDbUtils;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
/**
*
* @创建时间:2017年 ...
//#ifndef _EXRTENDS_H_
//http://blog.csdn.net/Csdn_zc/article/details/6674621
#include "stdafx.h"
#define _EXRTENDS_H_ //WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <TlHelp32.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <sys ...
具体请查看附件图片,或者下载图片附件查看:谢谢!
http://www.apache.org/dyn/closer.cgi/hbase/ habse下载地址
http://apache.fayea.com/hadoop/common/hadoop-2.6.0/ hadoop2.6.0
http://www.apache.org/dyn/closer.cgi/zookeeper/ zookeeper下载
http://hadoop.apache.org/docs/r2.6.0/ hadoop帮助文档