- 浏览: 876293 次
- 性别:
- 来自: 广州
最新评论
-
hjl416148489:
jbox演示DEMO和下载:http://www.sucaih ...
Jbox学习 -
caipeiming:
这里有个例子Java给图片加上水印并设置透明度和位置
java处理图片添加水印 -
Juveniless:
谢谢分享
CXF整合Spring之JaxWsProxyFactoryBean调用 -
springaop_springmvc:
可以参考最新的文档:如何在eclipse jee中检出项目并转 ...
eclipse maven plugin 插件 安装 和 配置 -
JavaSon_caibi:
public ParameterRequestWrapper( ...
java修改请求参数的值
文章列表
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="interceptor&q ...
File file = new File("E:\\assets\\picture\\1-1.png");
InputStream a = new FileInputStream(file);
byte[] bbb = new byte[a.available()];
a.read(bbb);
URL url = new URL(url);
HttpURLConnection httpurl = (HttpURLConnection) url.openConnection();
httpurl.setDoOutput(true);
...
//文件操作
String path = "g:/iphone4.jpg";
File file = new File(path);
FileInputStream fis = new FileInputStream(file);
byte[] b = new byte[fis.available()];
StringBuilder str = new StringBuilder();//不建议用String
fis.read(b);
//把字节数组的图片写到另一个地方
File apple= new File(&q ...
解析这种json格式
[
{"name":"zhang"},
{"name":"chun"}
]
$.ajax({
url:url,
dataType:"text",
type:"post",
success:function(data){
var obj = jQuery.parseJSON(data);
for(var p in obj){
if(typeof obj[p]. ...
String inString = "1-2-3-4-5-6---";
String oldPattern = "-";
String newPattern = ",";
// Simple replace
String s = org.springframework.util.StringUtils.replace(inString, oldPattern, newPattern);
System.out.println(s);
sql分页
select top (10) * from dbo.QL_GROUP t where t.groupid not in(select top(20) t.groupid from QL_GROUP t order by groupid);
select * from dbo.QL_GROUP t order by groupid
mysql分页
page=1; //页数
pageTotal=2; //每页的总条数
select * from subclass order by createtime limit page*pageTotal-pageTot ...
ems sql manager
http://www.sqlmanager.net/en/products/mysql/manager/download
http://download2.sqlmanager.net/download/mymanager/mymanager_lite.zip
MySQL-Front_Setup //客户端
mysql database
http://mysql.ntu.edu.tw/Downloads/MySQL-5.1/mysql-essential-5.1.59-win32.msi
mysql5.1卸装
1.sc mysql / ...
Array.prototype.del=function(n){ //n表示第几项,从0开始算起。 //prototype为对象原型,注意这里为对象增加自定义方法的方法。 //如果n<0,则不进行任何操作。
if(n<0)
return this;
else
return this.slice(0,n).concat(this.slice(n+1,this.length));
};
<!-- 图片预临览 -->
<script type="text/javascript" src="/webPortal/js/imgPreview/CJL.0.1.min.js"></script>
<script type="text/javascript" src="/webPortal/js/imgPreview/QuickUpload.js"></script>
<script type="text/javas ...
http://teamojiao.iteye.com/blog/446615 //这里也有一遍blog
//E:\Jwork\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\
jquerytest\WEB-INF\classes\image\
System.out.println(ServletActionContext.getRequest().getSession().
getServletContext().getRealPath("/WEB-INF/classes/image/" ...
var data="<Root><users><user>zhang</user></users></Root>";
var tmp,xml;
if ( window.DOMParser ) { // Standard
tmp = new DOMParser();
xml = tmp.parseFromString( data , "text/xml" );
} else { // IE
xml = new ActiveXObje ...
Java去除字符串中的空格、回车、换行符、制表符
String rspBody = new String(filePost.getResponseBody(),"utf-8");//
Pattern p = Pattern.compile("\\s*|\t|\r|\n");
Matcher m = p.matcher(rspBody);
String rspBody = m.replaceAll("");
...