- 博客(61)
- 收藏
- 关注
转载 java8 新用法
/** * 得到优先级最高的集合 * @param list es查询结果 * @return */public List<Group> getMaxPriorityGroup(List<Group> list) { int maxPriority = list.stream().max((o1, o2) -> o1.getPriority() - o...
2017-08-04 10:49:00 161
转载 entity framework delete table Error 11007:
udate model from database 数据库表删除时,会出现“Error 11007:”的异常,此时在.edmx文件中找到此表的实体发现还存在,删除它就没有这个错误 了。转载于:https://www.cnblogs.com/xuxu-dragon/p/6479605.html...
2017-02-28 16:46:00 216
转载 'EF.Utility.CS.ttinclude' returned a null or empty string.
需要安装https://www.microsoft.com/en-us/download/details.aspx?id=40762转载于:https://www.cnblogs.com/xuxu-dragon/p/6441701.html
2017-02-25 14:11:00 617
转载 js判断是否绑定了事件。
if ($._data($("#moreDescription")[0], "events")) { return; }转载于:https://www.cnblogs.com/xuxu-dragon/p/6211241.html
2016-12-22 14:49:00 1328
转载 线程每5分钟刷新一次
final ScheduledExecutorService scheduledExecutorService=Executors.newScheduledThreadPool(1);scheduledExecutorService.scheduleAtFixedRate(new Runnable() { @Override public void run() { ...
2016-12-20 15:36:00 381
转载 http请求提交cookie
package leadsServerTest;import org.apache.http.HttpResponse;import org.apache.http.client.HttpClient;import org.apache.http.client.methods.HttpGet;import org.apache.http.impl.client.BasicCookieSt...
2016-12-20 15:34:00 166
转载 javascrip小笔记
function getCookie(name) {//获取name为 var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)"); if (arr = document.cookie.match(reg)) { return decodeURI(arr[2]); } else { ...
2016-12-08 18:37:00 60
转载 java httpclient cookie
BasicCookieStore cookieStore = new BasicCookieStore();BasicClientCookie cookie = new BasicClientCookie("dealerAdvShowId", "0237a0ed-17c4-48f0-9a97-72a9d5b6d4ab");cookie.setDomain(".dealeradv.auto...
2016-12-08 17:54:00 126
转载 java.lang.IllegalArgumentException: template not initialized; call afterPropertiesSet() before using
在使用spring-data-redis时使用junit测试报错: java.lang.IllegalArgumentException: template not initialized; call afterPropertiesSet() before using通过跟踪代码发现是这一句出了问题:Assert.isTrue(this.initialized, "tem...
2016-11-02 16:49:00 4569
转载 Access denied for user 'Administrator'@'localhost' (using password: YES)
Access denied for user 'Administrator'@'localhost' (using password: YES)配置文件中明明是用的root<entry key="url"><![CDATA[jdbc:mysql://localhost:3306/xutest?serverTimezone=UTC&characterEnc...
2016-09-19 10:35:00 72
转载 java.lang.NoClassDefFoundError: org/apache/ibatis/session/SqlSession
在配置一个springmvc+mybatis的项目时,总是有报一个错误:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.mybatis.spring.mapper.MapperScannerConfigurer#0' defined in class...
2016-09-18 17:11:00 1336
转载 Unable to install breakpoint in
Unable to install breakpoint inXXXX due to missing line number attributes.modify compiler options to generate line number attrbueclipse due to missing line number attributes.modify compiler optio...
2016-09-08 10:37:00 133
转载 This kind of launch is configured to open the Debug perspective when it suspends.
This kind of launch is configured to open the Debug perspective when it suspends.因为设置了断点才会弹出这个,不需要调试的情况可以把断点去掉;但需要调试的时候这个就重要了,所以选择“Yes”就好了,不要每次都弹出这个就勾选“Remeber my decision”记住我的选择就好了。转载于:http...
2016-09-08 10:32:00 941
转载 activeamq启动失败
启动activeamq,启动时控制台显示:INFO: Using java '/usr/bin/java'INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get detailsINFO: pidfile created : '/home/jing.tan...
2016-07-18 16:28:00 364
转载 mybatis-generator-core生成代码
mybatis-generator-core-1.3.3下载地址:http://blog.mybatis.org/p/products.html下载后名解压,进入lib目录修改一个GeneratorConfig.xml文件:<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE generatorConfigu...
2016-07-18 12:12:00 144
转载 yum install mysql
rpm -qa|grep -i mysqlmysql-libs-5.1.52-1.1.alios6.1.x86_64mysql-5.1.52-1.1.alios6.1.x86_64mysql-devel-5.1.52-1.1.alios6.1.x86_64sudo rpm -e --nodeps mysql-*删除不了mysql-devel-5.1.52-1.1.alios6.1.x86...
2016-07-11 12:10:00 103
转载 log4j按级别输出日志文件
log4j.properties:BASE_DIR= /home/admin/preprocess-tmc-city/logslog4j.rootLogger=debug,stdout,debug,info,warn,error log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout...
2016-06-29 14:39:00 81
转载 nginx 安装及代理配置。
新建etc/yum.repos.d/nginx.repo文件,添加以下内容:[nginx]name=nginx repobaseurl=http://nginx.org/packages/centos/$releasever/$basearch/gpgcheck=0enabled=1yum info nginx 查看安装信息yumlist|grepngin...
2016-06-21 21:52:00 88
转载 zk抢主
package com.autonavi.tinfo.t1.traffic.pub.openlr.util;import java.util.Collections;import java.util.List;import java.util.concurrent.Executors;import java.util.concurrent.ScheduledExecutorService...
2016-06-20 19:54:00 113
转载 zookeeper启动。
package com.autonavi.tinfo.traffic.zookeeper;import java.util.Arrays;import java.util.Collections;import java.util.List;import java.util.concurrent.Executors;import java.util.concur...
2016-06-20 19:44:00 88
转载 assembly打包。
--排除<?xml version="1.0" encoding="UTF-8"?><assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta...
2016-06-06 21:44:00 134
转载 调用jar程序,读取与jar同级的配置文件。
System.getProperty("user.dir") + "\\Mysettings.properties";//该方法在Alimonitor里取不到绝对路径改成如下方法便可解决此问题:/** * 得到jar配置文件路径 * */ String GetPropertyFilePath() throws IOException { ...
2016-03-22 20:30:00 1078
转载 java.lang.UnsupportedClassVersionError
尝试运行出错,出错原因:/tmp/tmp_1458557049226652 exit 1, Exception in thread "main" java.lang.UnsupportedClassVersionError: autonavi/tinfo/nagiosMonitor/Main : Unsupported major.minor version 51.0 at java.l...
2016-03-22 16:15:00 65
转载 jar包程序 读取properties文件
String proFilePath = System.getProperty("user.dir") + "\\Mysettings.properties"; Properties prop = new Properties(); MonitorProperties monitorProperties=new MonitorProperties();...
2016-03-21 15:33:00 512
转载 Mysql-5.7.10启动失败 。
Mysql-5.7.10在免安装后启动服务失败。查看日志得到如下:2016-02-19T03:41:05.557095Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see...
2016-02-19 15:06:00 1033
转载 spring HibernateValidator 验证 子类不起作用
spring HibernateValidator 验证 子类不起作用,在要验证的子类前加上@Valid即可。public class UserInfo { private int Id; @Valid private AccontInfo accountInfo; @NotEmpty(message="{Title.FirstName}{Validator.CanNotB...
2016-02-17 12:23:00 1066
转载 Eclipse 启动Tomcat后web项目的classes的子文件夹中没有calss文件
Eclipse 启动Tomcat后web项目的classes的子文件夹中没有calss文件。经网上查得以下方法可解决把properties属性里的java compiler-->building-->abort build when build path errors occur 前的勾去掉了。目前推测原因可能是项目中jsp文件出现过多的错误,导致java文件不编...
2016-02-17 11:14:00 246
转载 java.lang.Exception: Socket bind failed: [730013] An attempt was made to acc
在CMD命令行中启动运行startup.bat,启运程序总是闪退,查看日志发现如下错误:26-Jan-2016 18:12:34.463 SEVERE [main] org.apache.coyote.AbstractProtocol.init Failed to initialize end point associated with ProtocolHandler ["ajp...
2016-01-26 18:29:00 270
转载 log4
<?xml version="1.0"?><configuration> <configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/> </confi...
2015-12-08 15:08:00 82
转载 App交互demo
Android<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>方法实现</title><meta name="author"...
2015-11-03 17:19:00 80
转载 SQL:每年每月最高的两个温度
SET QUOTED_IDENTIFIER ONGOCREATE TABLE [dbo].[Temperature]( [ID] [int] IDENTITY(1,1) NOT NULL, [Month] [int] NULL, [Year] [int] NULL, [Temperature] [int] NULL, CONSTRAINT [PK_Temperature] PRIMA...
2015-10-16 17:53:00 232
转载 Hadoop
《大数据:互联网大规模数据挖掘与分布式处理》电子版 http://www.db2china.net/club/thread-47659-1-1.html《Hadoop应用开发技术详解》电子版 http://www.db2china.net/club/thread-40775-1-1.html《京东大数据基础架构和实践》 http://www.db2china.net/club/thr...
2015-09-23 18:15:00 75
转载 java.sql.SQLException: Access denied for user 'root'
程序在连接远程 mysql服务器时出错java.sql.SQLException: Access denied for user 'root'@'192.168.27.129' (using password: YES)本机IP为'192.168.27.129'进入mysql命令行:MySQL>use mysql;MySQL>select host,user...
2015-08-31 16:42:00 498
转载 Cnetos7下,已经能访问tomcat
进入/usr/local/apache-tomcat-8.0.24/bin 中执行:./startup.sh开启tomcat再执行如下systemctl stop firewalld.service(systemctl start firewalld.service),关闭防火墙。到此在Cnetos7下,已经能访问tomcat转载于:https://www...
2015-08-31 12:23:00 47
转载 mysql 二进制安装文件 下载
在linuex环境下安装mysql,二进制安装包是最合适的方式,下载下来不用编译就可用了。官方说明文档:http://dev.mysql.com/doc/refman/5.1/en/binary-installation.html这里也有类似的说明:http://blog.csdn.net/kk185800961/article/details/44118323http://...
2015-08-06 15:46:00 236
转载 Winserver2008R2 .netframework4.5 asp.netmvc 访问出现的是文件列表。
Winserver2008R2 .netframework4.5 asp.netmvc 访问出现的是文件列表,服务器需要安装如下的补丁,才可正常访问。http://www.microsoft.com/en-us/download/confirmation.aspx?id=5272转载于:https://www.cnblogs.com/xuxu-dragon/p/4707886.h...
2015-08-06 14:24:00 77
转载 CentOS 7
新装了Vmware里centos7 发现 ifconfig不能用了。原来我是采用的最小化安装,且新版的弃用了ifconfig 改为用ipaddr之类的了。进入/etc/sysconfig/network-scripts/中也没有发现ifcfg-eth0,运行ethtool -i ethx初步认定是没有装驱动。后来网上搜了好久,才发现原来,我是Vmwar...
2015-08-03 11:59:00 78
转载 在页面上打印日历
@helper SignInCalender(DateTime argDate){ DateTime vFirstDay = new DateTime(argDate.Year, argDate.Month, 1); int vLastday = argDate.AddMonths(1).AddDays(-1).Day;//获取当月的最后一天 int vWeek = (...
2014-12-02 12:01:00 84
转载 mongodb分组,的两种方式,先记一下
using MongoDB.Bson;using MongoDB.Driver;using MongoDB.Driver.Builders;using NationalUnion.AdGallery.Model;using NationalUnion.Common.Utility;using System;using System.Collections.Ge...
2014-11-11 10:38:00 415
转载 MongoDb查询日期范围
{"AdID":"2", "CrateDate":{"$gte":ISODate("2014-10-12T16:00:00"),"$lte":ISODate("2014-10-13T16:00:00")} }听同事说,mongodb里的日期要比北京时间小8小时,因此统计时需要减8。才可以得出正确的数据。原来,MongoDB里的时间是采用的是从标准纪元开始的毫秒数,不存储时区。...
2014-10-14 16:14:00 1171
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人