- 博客(116)
- 收藏
- 关注
转载 初学Java的同学的eclipse软件下载及其win10环境变量的配置
https://blog.youkuaiyun.com/qq_41170600/article/details/82388824
2018-09-11 14:27:56
230
原创 表分区 示例
create table projectdata_instore( serial_no bigint not null, cky_no int comment '配送中心', store_no int comment '仓库编号', seller_no varchar
2014-05-05 11:21:57
949
转载 win7 喇叭图标不见了
1.打开命令提示符 找不到可以在开始菜单里面搜索,都有的2.输入:taskkill /f /im explorer.exe (注意l和/ f和/ m和e 之间有空格,可以直接复制我打的)这个命令会关闭你的资源管理器,届时你的桌面会消失。3.输入:start explorer 这个命令会打开资源管理器然后托盘就会显示出音量图标了。
2014-03-12 20:58:58
695
原创 java 对象序列化xml方法
package com.jd.josl.core.util;import com.thoughtworks.xstream.XStream;public class XMLTools { public static String generateXMLTaskContent(T bean) { XStream xstream = new XStre
2013-12-09 17:12:11
2472
转载 (转)常用IDEA快捷键
先说明一下这篇文章的由来。前天 @旅途无疆 强烈要求我整理一下IDEA的快捷键,于是我答应了。但是昨天实在太忙,没时间整。于是哥被他羞辱了一番,为了不继续丢人下去,哥今天花了将近2小时,整理了下面这些东西,希望对各位看官有用。下面列举的是我在日常开发工作中经常用到的快捷键。声明一下,以下快捷键都是在Mac下的,Windows下的话,会有些不同,请参照Windows版IDEA的keyma
2013-12-05 16:03:42
661
原创 java项目,配置maven,编译项目
1、安装maven,例如安装路径 D:\jianing\ToolsInstallation\Java开发工具\apache-maven-2.2.12、在环境变量里配置maven路径,(Win7)控制面板->用户账户->更改我的环境变量->系统环境:建立环境变量MAVEN_HOME,赋值:D:\jianing\ToolsInstallation\Java开发工具\apache-maven-2.2
2013-11-27 14:39:17
745
转载 MySQL-front
http://www.cnblogs.com/cosiray/archive/2012/04/19/2456910.html在用mysql-front的时候可能会遇到显示:程序注册时间到期 程序将被限制模式下运行 这时候先打开你的mysql-front文件夹下的PAD-File.xml 中有下的就是你的版本号。在帮助菜单下的点登记-->把以下的key一一试试,应该会有需要的。
2013-11-25 12:55:36
1134
转载 MySQL统计数据库表中是否有自增长列
/*统计数据库表中是否有自增长列*/SELECT distincttable_name FROM INFORMATION_SCHEMA.columns d where d.table_name in(select table_name from INFORMATION_SCHEMA.tables where table_schemanot in ('INFORMATIO
2013-09-25 08:49:25
1654
原创 自己建立wifi的命令行(DOS)
netsh wlan set hostednetwork mode=allow ssid=wifi key=123456netsh wlan start hostednetwork两条命令分别输入,其中ssid为wifi的名字,key为口令
2013-09-06 10:35:27
2380
转载 MyEclipse插件介绍与下载
MyEclipse插件介绍与下载1.Eclipse下载 EMF,GEF - Graphical Editor Framework,UML2,VE - Visual Editor都在这里下载 http://www.eclipse.org/downloads/index.php 1.lomboz J2EE插件,开发JSP,EJB http://forge.obj
2013-08-07 17:08:48
646
转载 java异步调用的方法
http://code.google.com/p/asyn4j/wiki/user_guide 1.3更新 优化代码 新增任务持久与恢复功能 任务调用和回调做为一个整体 例子:1.调用普通方法主方法 public static void main(String[] args) { // 初始化异步工作服务
2012-09-20 09:45:48
23036
转载 Flot图表的用法
Flot Examples Flot Examples Flot supports lines, points, filled areas, bars and any combinations of these, in the same plot and even on the same data s
2011-06-22 15:37:00
1246
转载 JQuery和Ajax(转贴)
http://blog.youkuaiyun.com/jiji262/archive/2007/08/12/1739715.aspx
2011-06-22 15:33:00
725
转载 C# JSON串和对象互相转换
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Reflection;using System.IO;using System.Runtime.Serialization.Json;namespace DotNet.Common.Util{ ///
2011-06-22 15:30:00
14697
原创 序列化(完整)
<br />using System;<br />using System.Collections.Generic;<br />using System.Text;<br />using System.IO;<br />using System.Runtime.Serialization;<br />using System.Data;<br />using System.Xml;<br />using System.Runtime.Serialization.Formatters.Binary;<br /
2011-04-21 10:10:00
1117
1
原创 用wsdl把webservice转成类
<br />用wsdl把webservice转成类<br /> <br />打开 VS 2008命令行<br /> <br />cd 进入一个文件夹地址<br /> <br />wsdl url?wsdl
2011-04-21 10:09:00
751
原创 设置默认打印机
<br /> /// <summary><br /> /// 设置默认打印机<br /> /// </summary><br /> /// <param name="name"></param><br /> public bool SetDefaultPrinter(string name)<br /> {<br /> bool val = false;<br /> string Printe
2011-03-23 21:10:00
664
原创 读取Htm文件内容到字符串
<br /> /// <summary><br /> /// 读取Htm文件内容到字符串<br /> /// </summary><br /> /// <param name="filepath">文件路径</param><br /> /// <returns>StringBuilder</returns><br /> public static string ReadHtml(string filepath)<br />
2011-03-23 21:09:00
1282
1
原创 检查网络是否正常
<br /> private void CheckNetStatus()<br /> {<br /> string ip = tbIP.Text.Trim();<br /> Ping p = new Ping();//创建Ping对象p<br /> PingReply pr = p.Send(ip);//向指定IP或者主机名的计算机发送ICMP协议的ping数据包<br /> if (pr.Status =
2011-03-16 15:59:00
1040
原创 TransactionScope
TransactionScope TransactionScope是.Net Framework 2.0滞后,新增了一个名称空间。它的用途是为数据库访问提供了一个“轻量级”[区别于:SqlTransaction]的事物。使用之前必须添加对 System.Transactions.dll 的引用。<br /><br /> 下列代码就是一个正在创建的事务,这个事务自身还封装了多个数据库查询。只要任意一个 SqlCommand 对象引发异常,程序流控制就会跳出 TransactionS
2010-12-01 15:58:00
494
原创 页面使用AJAX
<br /> var time;<br /> window.onload = Monitor = function() {<br /> try {<br /> var dte = new Date();<br /> var url = "AppGroup.ashx";<br /> $.ajax({<br /> url: url,<br />
2010-09-30 16:11:00
373
原创 获取MAC地址
<br />using System;<br />using System.Collections.Generic;<br />using System.Text;<br />using System.Diagnostics;<br />using System.Text.RegularExpressions;<br />using System.Net;<br />using System.ComponentModel;<br />using System.Data; <br />using System
2010-09-30 16:10:00
352
原创 获取机器IP和MAC地址
//获取IP public static string GetIP() { string hostIp = ""; Dns.GetHostName();//获取本地计算机名 hostIp = Dns.Resolve(Dns.GetHostName()).AddressList[0].ToString();//得到本地 return hostIp; }
2010-07-22 17:25:00
578
原创 ADO.NET-插入多条记录(用SqlBulkCopy类)
<br />/// <summary><br /> /// 批量复制<br /> /// </summary><br /> /// <param name="connectionString">目标表的数据库连接字符串</param><br /> /// <param name="sourceTable">原表</param><br /> /// <param name="destinationTable">目标表名</param><br
2010-07-22 17:19:00
979
原创 利用反射机制,读取dll,并调用其中的方法
<br /><br /> private void UserJN(string dllName,string className,string methodName)<br /> {<br /> string classFullName = dllName + "." + className;<br /> Assembly ass = Assembly.Load(dllName);<br /> Type obj =
2010-07-01 16:43:00
544
原创 在配置文件里增加代码,可以显示ibaits的日志
<br /><iBATIS> <br /> <logging><br /> <logFactoryAdapter type="IBatisNet.Common.Logging.Impl.ConsoleOutLoggerFA, IBatisNet.Common"><br /> <arg key="showLogName" value="true" /><br /> <arg key="showDataTime" value="true" /><b
2010-07-01 16:41:00
456
转载 读取配置文件加载背景图片,音乐
<br /> //读取配置文件加载背景图片,音乐<br /> this.BackgroundImage = Image.FromFile(Path.GetFullPath(ConfigurationManager.AppSettings["BackGroundImg"].ToString()));<br /> //播放音乐(可以用简单工厂模式附加选择音乐功能)<br /> string media = ConfigurationManage
2010-06-11 18:32:00
517
转载 Socket实例
<br />服务器端代码:<br />using System;<br />using System.Collections.Generic;<br />using System.ComponentModel;<br />using System.Data;<br />using System.Drawing;<br />using System.Text;<br />using System.Windows.Forms;<br />using System.Threading;<br />using Sy
2010-06-03 09:17:00
467
原创 线程异常,而进程不死 | 每次只打开一个桌面程序
<br />using System;<br />using System.Windows.Forms;<br />using System.Diagnostics;<br />using System.Runtime.InteropServices;<br />using System.Reflection;<br />using System.Configuration;<br />using Jd.Club.Extension;<br />using System.Security.Permissio
2010-06-03 09:03:00
624
转载 c# sqlite 数据库加密
用了ADO.NET 2.0 SQLite Data Provider 这样可以直接利用它来创建一个加密的sqlite数据库。<br />有关c#代码如下:<br />1、创建空的sqlite数据库。//数据库名的后缀你可以直接指定,甚至没有后缀都可以<br />//方法一:创建一个空sqlite数据库,用IO的方式<br />FileStream fs = File.Create(“c://test.db“);<br />//方法二:用SQLiteConnection<br />SQLiteConnec
2010-06-01 15:56:00
1423
原创 Timer的区别
System.Windows.Forms.Timer , 该 Timer 必须在 Winform 程序中使用,依赖于某个窗体;当窗体的主ui线程正在执行其他的消息时, Timer的时间就会被丢弃System.Timers.Timer 该Timer的事件默认执行在一个线程池中的工作线程(worker thread)中,不会像 Windows.Forms.Timer 那样一但主消息线程忙,就会丢失事件
2010-05-26 17:50:00
538
转载 asp.net中导出Execl的方法
一、asp.net中导出Execl的方法: 在 asp.net中导出Execl有两种方法,一种是将导出的文件存放在服务器某个文件夹下面,然后将文件地址 输出在浏览器上;一种是将文件直接将文件输出流写给浏览器。在Response输出时,/t分隔的数据,导出 execl时,等价于分列,/n等价于换一、asp.net中导出Execl的方法:在 asp.net中导出Execl有两种方法,一种是将导
2010-05-17 11:11:00
1153
1
原创 克隆对象副本
#region 克隆对象副本 public T Clone(T t) where T : class { MemoryStream stream = new MemoryStream(); stream.Seek(0, SeekOrigin.Begin); BinaryFormatter for
2010-04-06 09:54:00
733
1
转载 C#中Thread与ThreadPool的比较
我们可以通过Thread类,一次使用一个线程,来创建和删除线程。这种方式建立和删除线程是很昂贵的(cpu密集型)。所以,CLR包含一个内置的线程池,供应用程序使用。这个线程池可以通过ThreadPool类访问。ThreadPool类会在线程的托管池中重用已有的线程。使用完线程后,线程就会返回线程池,供以后使用。ThreadPool有25个可用的线程(每个处理器)。使用ThreadPoo
2010-03-09 18:07:00
1853
原创 vs中用命令发布站点
VS2005下如何用预编译命令来发布站点:1.建议两个文件夹WEB1,WEB2(D:/WEB1,用于存放你写的测试源程序),(D:/WEB2,用于存放编译后的程序)2.在DOS模式下输入:C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727>aspnet_compiler -v /test -p "d:/web1" "d:/web2"3.建立虚拟目录test,
2010-02-22 17:26:00
839
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人