java学习总结
文章平均质量分 77
元永真
做一个快乐的程序员!元:大度量;永:永久 永恒;贞:正;
展开
-
java 接口参数处理
/* * Copyright 2018 tomoncle * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...原创 2020-12-15 09:08:50 · 338 阅读 · 0 评论 -
aop 注解开发
aop 注解开发:1 原始对象2 切面类:3 配置bean4 测试:5 总结:原创 2020-12-03 19:16:29 · 90 阅读 · 0 评论 -
java监听器实现与原理
java监听器实现与原理 监听器,字面上的理解就是监听观察某个事件(程序)的发生情况,当被监听的事件真的发生了的时候,事件发生者(事件源) 就会给注册该事件的监听者(监听器)发送消息,告诉监听者某些信息,同时监听者也可以获得一份事件对象,根据这个对象可以获得相关属性和执行相关操作。监听器模型涉及以下三个对象,模型图如下:(1)事件:用户对组件的一个操作,或者说程序执行某个方法,称之为一个事件,如机器人程序执行工作。(2)事件源:发生事件的组件就是事件源,也就是被监听的对象,如机器人可以工作,可原创 2020-12-03 10:57:46 · 295 阅读 · 0 评论 -
JSON总结
public static void main(String[] args) {//map 转 jsonMap map = new HashMap();SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");map.put("date", dateformat.format(new Date原创 2017-05-18 19:19:49 · 199 阅读 · 0 评论 -
aop编程
aop编程:原创 2020-11-19 08:48:32 · 83 阅读 · 0 评论 -
java 多线程
1 Thread,Runnable来操作多线程----------------------------------------------------------------------------------------------------------------------------------------------------------2 Co原创 2018-03-19 11:33:14 · 126 阅读 · 0 评论 -
java判断数字类型(小数和整数)
public static void main(String[] args) { value = Double.parseDouble(ss); String str = "0.2"; System.out.println((int) Math.floor(1.6)); System.out.println((int) (0.原创 2017-08-10 17:01:25 · 3800 阅读 · 0 评论 -
ms
public static Object getMethInfo(String xmlStr,String method,String serviceUrl,String nameSpace) throws Exception {JaxWsDynamicClientFactory jcf = JaxWsDynamicClientFactory.newInstance();Client cl原创 2017-06-05 08:12:12 · 291 阅读 · 0 评论 -
freemark
1 list循环一行内容:AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEB${slightList.slightName}2 if else<w:rFonts w:ascii="楷体_GB2312" w:fareast="楷体_GB2312原创 2017-04-13 19:00:04 · 630 阅读 · 0 评论 -
poi 颜色
package com.mx.travel.mto.util;import java.io.FileOutputStream;import java.io.InputStream;import java.io.OutputStream;import java.math.BigDecimal;import java.util.ArrayList;import java原创 2017-04-18 15:29:08 · 688 阅读 · 0 评论 -
Excel 工具类
package com.mx.travel.util;import java.io.BufferedInputStream;import java.io.BufferedOutputStream;import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;imp原创 2017-04-17 16:31:32 · 254 阅读 · 0 评论 -
freemark table
<w:bottom w:val="dash-small-gap" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="BFBFBF"/><w:insideV w:val="dash-small-gap" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="BFBFBF"/><w:trHeight w:v原创 2017-04-17 16:29:56 · 387 阅读 · 0 评论 -
freemarker 生成word
// freemarker 工具类package com.mx.travel.util;import java.io.BufferedWriter;import java.io.File;import java.io.FileOutputStream;import java.io.IOException;import java.io.OutputStreamWrit原创 2017-03-21 09:30:03 · 302 阅读 · 0 评论 -
java 遍历map的四种方式
//java 遍历map的四种方式 public static void main(String[] args) { Map map = new HashMap(); map.put("1", "value1"); map.put("2", "value2"); map.put("3", "value3");转载 2017-03-29 08:34:52 · 193 阅读 · 0 评论 -
java json字符串转JSONObject和JSONArray以及取值
import net.sf.json.JSONArray; import net.sf.json.JSONObject; public class JsonTest { public static void main(String[] args) { String joStr = "{name:\"张三\",age:\"2转载 2017-03-29 08:40:20 · 559 阅读 · 0 评论 -
图片上传不保存并在页面显示出来
张图片上传步骤1、jsp页面[html] view plain copyform action="yst/saveImgPreview.action" enctype="multipart/form-data" method="post" clas转载 2017-03-29 08:43:24 · 387 阅读 · 0 评论 -
header中Content-Disposition的作用 用于浏览器不打开图片直接下载
今天查看Struts2的文件上传部分 发现有个例子开头打印的信息中有Content-Disposition,一时好奇,所以了解了一下。顺便学习一下文件上传所需要的注意事项。 Content-disposition 是 MIME 协议的扩展,MIME 协议指示 MIME 用户代理如何显示附加的文件。当 Internet Explorer 接收到头时,它会激活文件下载对话框,它的文件名框转载 2017-03-21 11:27:17 · 3107 阅读 · 0 评论