码迷,mamicode.com
首页 >  
搜索关键字:maybe not public    ( 83099个结果
MVC自定义编辑视图,DateTime类型属性显示jQuery ui的datapicker
实现的效果为:在编辑视图中,对DateTime类型的属性,显示jQuery UI的datepicker。效果如下: Student.cs public class Student { public int Id { get; set; } public string Name { get; set;...
分类:Windows程序   时间:2014-05-28 18:34:55    阅读次数:479
java计算两日期间隔小时或分钟
public static void main(String[] args) { try { long min = dateDiff("2014-05-27 13:30:00","2014-05-27 13:00:00","yyyy-MM-dd HH:mm:ss"); System.out...
分类:编程语言   时间:2014-05-28 16:16:27    阅读次数:328
封装一个简单的solrserver组件
一个简单的solrserver组件 实现索引更新的异步处理,以及查询接口,日志/线程池/队列监控没有加上。SolrDocment封装 接口:public interface ISolrDocument { public SolrInputDocument convertToInputDocum...
分类:其他好文   时间:2014-05-28 15:29:31    阅读次数:385
xml字符串解析
//解析xml字符串 public void readStringXml(String xml){Document doc=null;try { //将字符转化为XML doc=DocumentHelper.parseText(xml); ...
分类:其他好文   时间:2014-05-28 15:22:53    阅读次数:264
LeetCode Spiral Matrix
class Solution { public: vector spiralOrder(vector > &matrix) { vector ret; int cols = 0; ...
分类:其他好文   时间:2014-05-28 14:38:02    阅读次数:236
(转)Hibernate中的Query一些基本用法
/*** 添加*/public void save(Stu stu){ try { tran=this.GetSession().beginTransaction(); this.GetSession().save(stu); tran.commit(); } catch ...
分类:系统相关   时间:2014-05-28 14:32:37    阅读次数:437
HibernateDaoSupport详解 (转)
Spring为Hibernate的DAO提供工具类:HibernateDaoSupport。该类主要提供了两个方法:public final HibernateTemplate getHibernateTemplate()public final void setSessionFactory(Ses...
分类:系统相关   时间:2014-05-28 12:50:49    阅读次数:325
.net中的泛型
泛型把类或方法的类型的确定推迟到实例化该类或方法的时候,也就是说刚开始声明是不指定类型,等到要使用(实例化)时再指定类型泛型可以用于 类、方法、委托、事件等下面先写一个简单的泛型public class GenericClass{ void SomeMethod( T t ...
分类:Web程序   时间:2014-05-28 11:38:55    阅读次数:370
java 获取网络地址图片
收藏一个获取网络图片的方法。 1 //获取网络图片 2 public void ImageRequest(String ImageName,String GifUrl) throws Exception { 3 //new一个URL对象 4 URL u...
分类:编程语言   时间:2014-05-28 11:19:53    阅读次数:333
[leetcode]_Sum Root to Leaf Numbers
题目:计算一棵二叉树所有路径组成的数的总和。思考:也是DFS的基础应用。虽然还是套着别人的DFS框架写的,但是学习通常会经历先模拟,再创新的过程。代码: 1 private int sum = 0; 2 public int sumNumbers(TreeNode root) { 3...
分类:其他好文   时间:2014-05-28 11:13:01    阅读次数:225
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!