字符串工具类

StringUtil.java

  1. package com.***.util;
  2.  
  3. /**
  4. * StringUtil
  5. * @description: 字符串工具类
  6. **/
  7. public class StringUtil {
  8.  
  9. /**
  10. * 判断是否为空字符串最优代码
  11. * @param str
  12. * @return 如果为空,则返回true
  13. */
  14. public static boolean isEmpty(String str){
  15. return str == null || str.trim().length() == 0;
  16. }
  17.  
  18. /**
  19. * 判断字符串是否非空
  20. * @param str 如果不为空,则返回true
  21. * @return
  22. */
  23. public static boolean isNotEmpty(String str){
  24. return !isEmpty(str);
  25. }
  26. }

数据类型转换类

CastUtil.java

  1. package com.***.util;
  2.  
  3. /**
  4. * CastUtil
  5. * @description: 数据转型工具类
  6. **/
  7. public class CastUtil {
  8. /**
  9. * @Description: 转为String类型
  10. * @Param: [obj]
  11. * @return: java.lang.String 如果参数为null则转为空字符串
  12. */
  13. public static String castString(Object obj){
  14. return CastUtil.castString(obj,"");
  15. }
  16.  
  17. /**
  18. * @Description: 转为String类型(提供默认值)
  19. * @Param: [obj, defaultValue] 将obj转为string,如果obj为null则返回default
  20. * @return: String
  21. */
  22. public static String castString(Object obj,String defaultValue){
  23. return obj!=null?String.valueOf(obj):defaultValue;
  24. }
  25.  
  26. /**
  27. * @Description: 转为double类型,如果为null或者空字符串或者格式不对则返回0
  28. * @Param: [obj]
  29. * @return: String
  30. */
  31. public static double castDouble(Object obj){
  32. return CastUtil.castDouble(obj,0);
  33. }
  34.  
  35. /**
  36. * @Description: 转为double类型 ,如果obj为null或者空字符串或者格式不对则返回defaultValue
  37. * @Param: [obj, defaultValue]
  38. * @return: String obj为null或者空字符串或者格式不对返回defaultValue
  39. */
  40. public static double castDouble(Object obj,double defaultValue){
  41. double value = defaultValue; //声明结果,把默认值赋给结果
  42. if (obj!=null){ //判断是否为null
  43. String strValue = castString(obj); //转换为String
  44. if (StringUtil.isNotEmpty(strValue)){ //判断字符串是否为空(是否为空只能判断字符串,不能判断Object)
  45. try{
  46. value = Double.parseDouble(strValue); //不为空则把值赋给value
  47. }catch (NumberFormatException e){
  48. value = defaultValue; //格式不对把默认值赋给value
  49. }
  50.  
  51. }
  52. }
  53. return value;
  54. }
  55.  
  56. /**
  57. * 转为long型,如果obj为null或者空字符串或者格式不对则返回0
  58. * @param obj
  59. * @return
  60. */
  61. public static long castLong(Object obj){
  62. return CastUtil.castLong(obj,0);
  63. }
  64.  
  65. /**
  66. * 转为long型(提供默认数值),如果obj为null或者空字符串或者格式不对则返回defaultValue
  67. * @param obj
  68. * @param defaultValue
  69. * @return obj为null或者空字符串或者格式不对返回defaultValue
  70. */
  71. public static long castLong(Object obj,long defaultValue){
  72. long value = defaultValue; //声明结果,把默认值赋给结果
  73. if (obj!=null){ //判断是否为null
  74. String strValue = castString(obj); //转换为String
  75. if (StringUtil.isNotEmpty(strValue)){ //判断字符串是否为空(是否为空只能判断字符串,不能判断Object)
  76. try{
  77. value = Long.parseLong(strValue); //不为空则把值赋给value
  78. }catch (NumberFormatException e){
  79. value = defaultValue; //格式不对把默认值赋给value
  80. }
  81.  
  82. }
  83. }
  84. return value;
  85. }
  86.  
  87. /**
  88. * 转为int型
  89. * @param obj
  90. * @return 如果obj为null或者空字符串或者格式不对则返回0
  91. */
  92. public static int castInt(Object obj){
  93. return CastUtil.castInt(obj,0);
  94. }
  95.  
  96. /**
  97. * 转为int型(提供默认值)
  98. * @param obj
  99. * @param defaultValue
  100. * @return 如果obj为null或者空字符串或者格式不对则返回defaultValue
  101. */
  102. public static int castInt(Object obj,int defaultValue){
  103. int value = defaultValue; //声明结果,把默认值赋给结果
  104. if (obj!=null){ //判断是否为null
  105. String strValue = castString(obj); //转换为String
  106. if (StringUtil.isNotEmpty(strValue)){ //判断字符串是否为空(是否为空只能判断字符串,不能判断Object)
  107. try{
  108. value = Integer.parseInt(strValue); //不为空则把值赋给value
  109. }catch (NumberFormatException e){
  110. value = defaultValue; //格式不对把默认值赋给value
  111. }
  112.  
  113. }
  114. }
  115. return value;
  116. }
  117.  
  118. /**
  119. * 转为boolean型,不是true的返回为false
  120. * @param obj
  121. * @return
  122. */
  123. public static boolean castBoolean(Object obj){
  124. return CastUtil.castBoolean(obj,false);
  125. }
  126.  
  127. /**
  128. * 转为boolean型(提供默认值)
  129. * @param obj
  130. * @param defaultValue
  131. * @return
  132. */
  133. public static boolean castBoolean(Object obj,boolean defaultValue){
  134. boolean value = defaultValue;
  135. if (obj!=null){ //为null则返回默认值
  136. value = Boolean.parseBoolean(castString(obj)); //底层会把字符串和true对比,所以不用判断是否为空字符串
  137. }
  138. return value;
  139. }
  140. }

集合工具类

CollectionUtil.java

  1. package com.***.util;
  2.  
  3. import org.apache.commons.collections4.CollectionUtils;
  4. import org.apache.commons.collections4.MapUtils;
  5. import java.util.Collection;
  6. import java.util.Map;
  7.  
  8. /**
  9. * CollectionUtil
  10. * @description: 集合工具类
  11. **/
  12. public class CollectionUtil {
  13. /**
  14. * 判断collection是否为空
  15. * @param collection
  16. * @return
  17. */
  18. public static boolean isEmpty(Collection<?> collection){
  19. //return CollectionUtils.isEmpty(collection);
  20. return collection == null || collection.isEmpty();
  21. }
  22.  
  23. /**
  24. * 判断Collection是否非空
  25. * @return
  26. */
  27. public static boolean isNotEmpty(Collection<?> collection){
  28. return !isEmpty(collection);
  29. }
  30.  
  31. /**
  32. * 判断map是否为空
  33. * @param map
  34. * @return
  35. */
  36. public static boolean isEmpty(Map<?,?> map){
  37. //return MapUtils.isEmpty(map);
  38. return map == null || map.isEmpty();
  39. }
  40.  
  41. /**
  42. * 判断map是否非
  43. * @param map
  44. * @return
  45. */
  46. public static boolean isNotEmpty(Map<?,?> map){
  47. return !isEmpty(map);
  48. }
  49. }

数组工具类

ArrayUtil.java

  1. /**
  2. * 数组工具类
  3. */
  4. public class ArrayUtil {
  5. /**
  6. * 判断数组是否为空
  7. * @param array
  8. * @return
  9. */
  10. public static boolean isNotEmpty(Object[] array){
  11. return !isEmpty(array);
  12. }
  13.  
  14. /**
  15. * 判断数组是否非空
  16. * @param array
  17. * @return
  18. */
  19. public static boolean isEmpty(Object[] array){
  20. return array==null||array.length==0;
  21. }
  22. }

Properties文件操作类

PropsUtil.java

  1. package com.***.util;
  2.  
  3. import org.slf4j.Logger;
  4. import org.slf4j.LoggerFactory;
  5.  
  6. import java.io.FileNotFoundException;
  7. import java.io.IOException;
  8. import java.io.InputStream;
  9. import java.util.Properties;
  10.  
  11. /**
  12. * 属性文件工具类
  13. */
  14. public class PropsUtil {
  15. private static final Logger LOGGER = LoggerFactory.getLogger(PropsUtil.class);
  16.  
  17. /**
  18. * 加载属性文件
  19. * @param fileName fileName一定要在class下面及java根目录或者resource跟目录下
  20. * @return
  21. */
  22. public static Properties loadProps(String fileName){
  23. Properties props = new Properties();
  24. InputStream is = null;
  25. try {
  26. //将资源文件加载为流
  27. is = Thread.currentThread().getContextClassLoader().getResourceAsStream(fileName);
    props.load(is);
  28. if(is==null){
  29. throw new FileNotFoundException(fileName+"file is not Found");
  30. }
  31. } catch (FileNotFoundException e) {
  32. LOGGER.error("load properties file filure",e);
  33. }finally {
  34. if(is !=null){
  35. try {
  36. is.close();
  37. } catch (IOException e) {
  38. LOGGER.error("close input stream failure",e);
  39. }
  40. }
  41. }
  42. return props;
  43. }
  44.  
  45. /**
  46. * 获取字符型属性(默认值为空字符串)
  47. * @param props
  48. * @param key
  49. * @return
  50. */
  51. public static String getString(Properties props,String key){
  52. return getString(props,key,"");
  53. }
  54.  
  55. /**
  56. * 获取字符型属性(可制定默认值)
  57. * @param props
  58. * @param key
  59. * @param defaultValue 当文件中无此key对应的则返回defaultValue
  60. * @return
  61. */
  62. public static String getString(Properties props,String key,String defaultValue){
  63. String value = defaultValue;
  64. if (props.containsKey(key)){
  65. value = props.getProperty(key);
  66. }
  67. return value;
  68. }
  69.  
  70. /**
  71. * 获取数值型属性(默认值为0)
  72. * @param props
  73. * @param key
  74. * @return
  75. */
  76. public static int getInt(Properties props,String key){
  77. return getInt(props,key,0);
  78. }
  79.  
  80. /**
  81. * 获取数值型属性(可指定默认值)
  82. * @param props
  83. * @param key
  84. * @param defaultValue
  85. * @return
  86. */
  87. public static int getInt(Properties props,String key,int defaultValue){
  88. int value = defaultValue;
  89. if (props.containsKey(key)){
  90. value = CastUtil.castInt(props.getProperty(key));
  91. }
  92. return value;
  93. }
  94.  
  95. /**
  96. * 获取布尔型属性(默认值为false)
  97. * @param props
  98. * @param key
  99. * @return
  100. */
  101. public static boolean getBoolean(Properties props,String key){
  102. return getBoolean(props,key,false);
  103. }
  104.  
  105. /**
  106. * 获取布尔型属性(可指定默认值)
  107. * @param props
  108. * @param key
  109. * @param defaultValue
  110. * @return
  111. */
  112. public static boolean getBoolean(Properties props,String key,Boolean defaultValue){
  113. boolean value = defaultValue;
  114. if (props.containsKey(key)){
  115. value = CastUtil.castBoolean(props.getProperty(key));
  116. }
  117. return value;
  118. }
  119. }

用到的maven坐标

  1. <!--slf4j-->
  2. <dependency>
  3. <groupId>org.slf4j</groupId>
  4. <artifactId>slf4j-log4j12</artifactId>
  5. <version>1.7.9</version>
  6. </dependency>

常用流操作工具类

StreamUtil.java

  1. public class StreamUtil {
  2. private static final Logger LOGGER = LoggerFactory.getLogger(StreamUtil.class);
  3.  
  4. /**
  5. * 从输入流中获取字符串
  6. * @param is
  7. * @return
  8. */
  9. public static String getString(InputStream is){
  10. StringBuilder sb = new StringBuilder();
  11. try {
  12. BufferedReader reader = new BufferedReader(new InputStreamReader(is));
  13. String line;
  14. while((line=reader.readLine())!=null){
  15. sb.append(line);
  16. }
  17. } catch (IOException e) {
  18. LOGGER.error("get string failure",e);
  19. throw new RuntimeException(e);
  20. }
  21. return sb.toString();
  22. }
  23.  
  24. }

编码工具类

  1. public class CodecUtil {
  2. private static final Logger LOGGER = LoggerFactory.getLogger(CodecUtil.class);
  3.  
  4. /**
  5. * 将URL编码
  6. */
  7. public static String encodeURL(String source){
  8. String target;
  9. try {
  10. target = URLEncoder.encode(source,"utf-8");
  11. } catch (UnsupportedEncodingException e) {
  12. LOGGER.error("encode url failure",e);
  13. throw new RuntimeException(e);
  14. //e.printStackTrace();
  15. }
  16. return target;
  17. }
  18.  
  19. /**
  20. * 将URL解码
  21. */
  22. public static String dencodeURL(String source){
  23. String target;
  24. try {
  25. target = URLDecoder.decode(source,"utf-8");
  26. } catch (UnsupportedEncodingException e) {
  27. LOGGER.error("encode url failure",e);
  28. throw new RuntimeException(e);
  29. //e.printStackTrace();
  30. }
  31. return target;
  32. }
  33. }

Json工具类

  1. package org.smart4j.framework.util;
  2.  
  3. import com.fasterxml.jackson.core.JsonProcessingException;
  4. import com.fasterxml.jackson.databind.ObjectMapper;
  5. import org.slf4j.Logger;
  6. import org.slf4j.LoggerFactory;
  7.  
  8. import java.io.IOException;
  9.  
  10. /**
  11. * @program: JsonUtil
  12. * @description: JSON工具类
  13. * @author: Created by QiuYu
  14. * @create: 2018-10-24 15:55
  15. */
  16.  
  17. public class JsonUtil {
  18. private static final Logger LOGGER = LoggerFactory.getLogger(JsonUtil.class);
  19.  
  20. private static final ObjectMapper OBJECT_MAPPER =new ObjectMapper();
  21.  
  22. /**
  23. * 将POJO转换为JSON
  24. */
  25. public static <T> String toJson(T obj){
  26. String json;
  27. try {
  28. json = OBJECT_MAPPER.writeValueAsString(obj);
  29. } catch (JsonProcessingException e) {
  30. LOGGER.error("convert POJO to JSON failure",e);
  31. throw new RuntimeException(e);
  32. //e.printStackTrace();
  33. }
  34. return json;
  35. }
  36.  
  37. /**
  38. * 将JSON转为POJO
  39. */
  40. public static <T> T fromJson(String json,Class<T> type){
  41. T pojo;
  42. try {
  43. pojo = OBJECT_MAPPER.readValue(json,type);
  44. } catch (IOException e) {
  45. LOGGER.error("convert JSON to POJO failure",e);
  46. throw new RuntimeException(e);
  47. //e.printStackTrace();
  48. }
  49. return pojo;
  50.  
  51. }
  52. }

日期工具类

DataUtil.java

  1. /**
  2. * 根据年月获取当月最后一天
  3. * @param yearmonth yyyy-MM
  4. * @return yyyy-MM-dd
  5. * @throws ParseException
  6. */
  7. public static String getLastDayOfMonth(String yearmonth) {
  8. try {
  9. SimpleDateFormat format = new SimpleDateFormat("yyyy-MM");
  10. Date dd = format.parse(yearmonth);
  11. Calendar cal = Calendar.getInstance();
  12. cal.setTime(dd);
  13. int cc=cal.getActualMaximum(Calendar.DAY_OF_MONTH);
  14. String result = yearmonth+"-"+cc;
  15. return result;
  16. } catch (ParseException e) {
  17. e.printStackTrace();
  18. }
  19. return null;
  20. }

下载文件工具类

  1. /**
  2. * 下载url的文件到指定文件路径里面,如果文件父文件夹不存在则自动创建
  3. * url 下载的http地址
  4. * path 文件存储地址
  5. * return 如果文件大小大于2k则返回true
  6. */
  7. public static boolean downloadCreateDir(String url,String path){
  8. HttpURLConnection connection=null;
  9. InputStream in = null;
  10. FileOutputStream o=null;
  11. try{
  12. URL httpUrl=new URL(url);
  13. connection = (HttpURLConnection) httpUrl.openConnection();
  14. connection.setRequestProperty("accept", "*/*");
  15. connection.setRequestProperty("Charset", "gbk");
  16. connection.setRequestProperty("connection", "Keep-Alive");
  17. connection.setRequestProperty("user-agent","Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)");
  18. connection.setRequestMethod("GET");
  19.  
  20. byte[] data=new byte[];
  21. File f=new File(path);
  22. File parentDir = f.getParentFile();
  23. if (!parentDir.exists()) {
  24. parentDir.mkdirs();
  25. }
  26. if(connection.getResponseCode() == ){
  27. in = connection.getInputStream();
  28. o=new FileOutputStream(path);
  29. int n=;
  30. while((n=in.read(data))>){
  31. o.write(data, , n);
  32. o.flush();
  33. }
  34. }
  35. if(f.length()>){ //代表文件大小
  36. return true; //如果文件大于2k则返回true
  37. }
  38. }catch(Exception ex){
  39. ex.printStackTrace();
  40. }finally{
  41. try{
  42. if(in != null){
  43. in.close();
  44. }
  45. }catch(IOException ex){
  46. ex.printStackTrace();
  47. }
  48. try{o.close();}catch(Exception ex){}
  49. try{connection.disconnect();}catch(Exception ex){}
  50. }
  51. return false;
  52. }

解压ZIP工具类

  1. package com.***.tools;
  2.  
  3. import java.io.BufferedOutputStream;
  4. import java.io.File;
  5. import java.io.FileOutputStream;
  6. import java.io.IOException;
  7. import java.io.InputStream;
  8. import java.nio.charset.Charset;
  9. import java.util.Enumeration;
  10. import java.util.zip.ZipEntry;
  11. import java.util.zip.ZipFile;
  12.  
  13. /**
  14. * 解压zip文件
  15. */
  16. public final class ZipUtil {
  17. private static final int buffer = 2048;
  18.  
  19. /**
  20. * 解压Zip文件
  21. * @param path zip文件目录
  22. */
  23. public static void unZip(String path) {
  24. int count = -1;
  25. String savepath = "";
  26.  
  27. File file = null;
  28. InputStream is = null;
  29. FileOutputStream fos = null;
  30. BufferedOutputStream bos = null;
  31.  
  32. savepath = path.substring(0, path.lastIndexOf(".")) + File.separator; // 保存解压文件目录
  33. new File(savepath).mkdir(); // 创建保存目录
  34. ZipFile zipFile = null;
  35. try {
  36. zipFile = new ZipFile(path,Charset.forName("GBK")); // 解决中文乱码问题
  37. Enumeration<?> entries = zipFile.entries(); //枚举ZIP中的所有文件
  38.  
  39. while (entries.hasMoreElements()) {
  40. byte buf[] = new byte[buffer];
  41.  
  42. ZipEntry entry = (ZipEntry) entries.nextElement();
  43.  
  44. String filename = entry.getName(); //获取文件名
  45. filename = savepath + filename;
  46. boolean ismkdir = false;
  47. if (filename.lastIndexOf("/") != -1) { // 检查此文件是否带有文件夹
  48. ismkdir = true;
  49. }
  50.  
  51. if (entry.isDirectory()) { // 如果此枚举文件是文件夹则创建,并且遍历下一个
  52. file = new File(filename);
  53. file.mkdirs();
  54. continue;
  55. }
  56. file = new File(filename); //此枚举文件不是目录
  57. if (!file.exists()) { //如果文件不存在并且文件带有目录
  58. if (ismkdir) {
  59. new File(filename.substring(0, filename
  60. .lastIndexOf("/"))).mkdirs(); // 先创建目录
  61. }
  62. }
  63. file.createNewFile(); //再创建文件
  64.  
  65. is = zipFile.getInputStream(entry);
  66. fos = new FileOutputStream(file);
  67. bos = new BufferedOutputStream(fos, buffer);
  68.  
  69. while ((count = is.read(buf)) > -1) {
  70. bos.write(buf, 0, count);
  71. }
  72. bos.flush();
  73. }
  74. } catch (IOException ioe) {
  75. ioe.printStackTrace();
  76. } finally {
  77. try {
  78. if (bos != null) {
  79. bos.close();
  80. }
  81. if (fos != null) {
  82. fos.close();
  83. }
  84. if (is != null) {
  85. is.close();
  86. }
  87. if (zipFile != null) {
  88. zipFile.close();
  89. }
  90. } catch (Exception e) {
  91. e.printStackTrace();
  92. }
  93. }
  94. }
  95. }

文件编码转码

将GBK编码的文件转为UTF-8编码的文件

经常配合上一个使用,下载的压缩包解压为文件然后解码。

  1. /**
  2. * 把GBK文件转为UTF-8
  3. * 两个参数值可以为同一个路径
  4. * @param srcFileName 源文件
  5. * @param destFileName 目标文件
  6. * @throws IOException
  7. */
  8. private static void transferFile(String srcFileName, String destFileName) throws IOException {
  9. String line_separator = System.getProperty("line.separator");
  10. FileInputStream fis = new FileInputStream(srcFileName);
  11. StringBuffer content = new StringBuffer();
  12. DataInputStream in = new DataInputStream(fis);
  13. BufferedReader d = new BufferedReader(new InputStreamReader(in, "GBK")); //源文件的编码方式
  14. String line = null;
  15. while ((line = d.readLine()) != null)
  16. content.append(line + line_separator);
  17. d.close();
  18. in.close();
  19. fis.close();
  20.  
  21. Writer ow = new OutputStreamWriter(new FileOutputStream(destFileName), "utf-8"); //需要转换的编码方式
  22. ow.write(content.toString());
  23. ow.close();
  24. }

Java开发常用Util工具类-StringUtil、CastUtil、CollectionUtil、ArrayUtil、PropsUtil的更多相关文章

  1. java中常用的工具类(一)

    我们java程序员在开发项目的是常常会用到一些工具类.今天我汇总了一下java中常用的工具方法.大家可以在项目中使用.可以收藏!加入IT江湖官方群:383126909 我们一起成长 一.String工 ...

  2. java中常用的工具类(二)

    下面继续分享java中常用的一些工具类,希望给大家带来帮助! 1.FtpUtil           Java   1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 ...

  3. java中常用的工具类(三)

    继续分享java中常用的一些工具类.前两篇的文章中有人评论使用Apache 的lang包和IO包,或者Google的Guava库.后续的我会加上的!谢谢支持IT江湖 一.连接数据库的综合类       ...

  4. 【在线工具】java开发常用在线工具

    转自:常用工具页面 Java源代码搜索 Grepcode是一个面向于Java开发人员的网站,在这里你可以通过Java的projects.classes等各种关键字在线查看它对应的源码,知道对应的pro ...

  5. Java基础学习(五)-- Java中常用的工具类、枚举、Java中的单例模式之详解

    Java中的常用类 1.Math : 位于java.lang包中 (1)Math.PI:返回一个最接近圆周率的 (2)Math.abs(-10):返回一个数的绝对值 (3)Math.cbrt(27): ...

  6. 【uniapp 开发】字符串工具类 StringUtil

    替换字符串中的所有 "***" 子串 var str='Is this all there is'; var subStr=new RegExp('is','ig');//创建正则 ...

  7. Android开发之常用必备工具类图片bitmap转成字符串string与String字符串转换为bitmap图片格式

    作者:程序员小冰,CSDN博客:http://blog.csdn.net/qq_21376985 QQ986945193 博客园主页:http://www.cnblogs.com/mcxiaobing ...

  8. Java基础学习总结(70)——开发Java项目常用的工具汇总

    要想全面了解java开发工具,我们首先需要先了解一下java程序的开发过程,通过这个过程我们能够了解到java开发都需要用到那些工具. 首先我们先了解完整项目开发过程,如图所示: 从上图中我们能看到一 ...

  9. Java语言Lang包下常用的工具类介绍_java - JAVA

    文章来源:嗨学网 敏而好学论坛www.piaodoo.com 欢迎大家相互学习 无论你在开发哪中 Java 应用程序,都免不了要写很多工具类/工具函数.你可知道,有很多现成的工具类可用,并且代码质量都 ...

随机推荐

  1. MyEclipse 相关设置

    1. MyElipse复制项目后,修改项目的发布名称的方式.右击你的项目,选择 properties -- > MyElipse -- > web,然后修改名称即可. 2. IDE查看源代 ...

  2. linux服务器---安装swat

    安装swat swat是一个图形化的samba管理软件,可以帮助不熟悉的人去灵活的配置samba服务, 1.安装swat [root@localhost wj]#yum install -y samb ...

  3. 删除github上个人的repositories的操作步骤

  4. 怎么说, 开发会很乐意去主动修改bug?

    怎么说, 开发会很乐意去主动修改bug? 一图顶上千言万语,如下:

  5. GitHub Desktop离线安装包

    GitHub Desktop离线安装包.上传时间是2017-02-05 版本3.3.4.0,Git shell版本是v2.11.0. 百度网盘的下载链接: http://pan.baidu.com/s ...

  6. 20145302张薇 《网络对抗技术》 web基础

    20145302张薇 <网络对抗> web基础 实验问题回答 1.什么是表单 表单在网页中主要负责数据采集功能:一般网页上需要用户输入.选择的地方都会用到表单 表单标签:即,用于确定表单所 ...

  7. 20165310 Java实验四 《Android程序设计》

    20165310 实验四 <Android程序设计> 第24章:初识Android 任务一:改写res目录中的内容,Hello World后要显示自己的学号,自己学号前后一名同学的学号 首 ...

  8. Python数据分析入门之pandas基础总结

    Pandas--"大熊猫"基础 Series Series: pandas的长枪(数据表中的一列或一行,观测向量,一维数组...) Series1 = pd.Series(np.r ...

  9. 【第十二章】 springboot + mongodb(复杂查询)

    简单查询:使用自定义的XxxRepository接口即可.(见 第十一章 springboot + mongodb(简单查询)) 复杂查询:使用MongoTemplate以及一些查询条件构建类(Bas ...

  10. [JavaScript] - form表单转json的插件

    jquery.serializejson.js 之前好像记录过,做项目又用到了再记下 在页面中引入js后就可以使用了 示例: //点击设置微信信息的form表单提交按钮后,执行wxConfig的con ...