`
文章列表
/** * Http访问 * @param httpUrl String * @param parameters Map<String,String> * @return String * @throws IOException */ public static synchronized String httpClient(String httpUrl,Map<String,String> parameters) throws IOException { URL url = new URL(httpUrl); Http ...
ClassLoader 提供了两个方法用于从装载的类路径中取得资源: public URL getResource (String name); public InputStream getResourceAsStream (String name); 这里name是资源的类路径,它是相对与“/”根路径下的位置。getResource得到的是一个URL对象来定位资源,而getResourceAsStream取得该资源输入流的引用保证程序可以从正确的位置抽取数据。 但是真正使用的不是ClassLoader的这 ...
如果你想连接你的mysql的时候发生这个错误: ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL server 解决方法: 1。 改表法。可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%" mysql -u r ...

Con 表达式

cron表达式详解 Cron表达式是一个字符串,字符串以5或6个空格隔开,分为6或7个域,每一个域代表一个含义,Cron有如下两种语法格式: Seconds Minutes Hours DayofMonth Month DayofWeek Year或 Seconds Minutes Hours DayofMonth Month DayofWeek 每 ...

Spring3 +JPA

1)META-INF/persistence.xml This EntityManagerFactory bootstrap is appropriate for standalone applications  * which solely use JPA for data access. If you want to set up your persistence  * provider for an external DataSource and/or for global transactions which span  * multiple resources, you w ...

Hessian调用方法

    package com.huashun.api.hessian; import java.util.List; import com.huashun.api.hessian.domain.BaseDataVo; /** * * @author LiuQing * @see 基本数据接口 * @version 1.0 * 2014-9-25 下午6:01:10 */ public interface IBaseDataApi { /** * 查询所有行政区 * @return List<BaseData> ...

Freemark的使用

freemark 解释   package com.page.freemark; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import com.page.vo.StudentInfo; ...
 Oracle数据库如何创建Database Link呢?本文我们主要就介绍一下这部分内容,Oracle数据库创建Database Link有两种方式,一种是通过菜单,一种是通过SQL。   创建一个dblink,命名为dblink_name,从A数据库连到B数据库,B数据库的IP为192.168.1.73,端口为1521,实例名为oracle,登录名为tast,密码为test。     create public database link dblink_name connect to SYSTEM using '192.168.1.73:1521/oracle';  

J2EE安装问题

安装J2EE的SDK报错:could not find the required version of the Java(TM)2 Runtime Environment in '(null)'的解决办法。   安装J2EE的SDK报错:could not find the required version of the Java(TM)2 Runtime Environment in '(null)'的解决办法。 先到http://www.java.com/zh_CN/do ...
我们通过java -jar xx.jar 运行对应的程序如何打包发布及动行   1)pom.xml 配置文件内容 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"& ...

Combo通用类型封装

1.Combobox封闭 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <!DOCTYPE HTML> <html> <head> <meta http- ...

ComboBox简单开发

  1.原理 不多讲了:div 显示+input 及显示项与js 数据对像的使用   2.代码 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dt ...

js获取项目根路径

//js获取项目根路径,如: http://localhost:8083/uimcardprj function getRootPath(){ //获取当前网址,如: http://localhost:8083/uimcardprj/share/meun.jsp var curWwwPath=window.document.location.href; //获取主机地址之后的目录,如: uimcardprj/share/meun.jsp var pathName=window.document.location.pathname; var p ...

jquery 分面控件

1.详见发下  

部分类的定义

    博客分类:
  • C#
1.部分类的定义及好处 由于一个文件中有同一类时文件很长,有时太长的很难维护所以在这里我们就可以将同一类分成不同的文件 来表示同一个类这里就引入了部分类 partial   using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace com.dao { public partial class Mub { public string say(string a) { ...
Global site tag (gtag.js) - Google Analytics