自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 下划线变驼峰,驼峰变下划线

/* * @Author * @Description //驼峰变为下划线 * @Date 7:17 2021/4/20 * @Param [str] * @return java.lang.String **/ public static String toLine(String str) { StringBuffer stringBuffer = new StringBuffer(); for (int.

2021-04-19 17:20:02 399 1

原创 ${}占位符的解析

package com.example;import java.util.HashMap;import java.util.Map;/** * @ClassName: Resolve * @Auther: zhaoxiuhao * @Date: 2021/1/26 9:24 * @Description: TODO * @Version: 1.0 */public class Resolve { public static final String prefx = "#{";

2021-01-26 09:50:01 1022

原创 URL编程

2021-01-12 21:29:24 92

原创 对流的相关操作(图片加密)

package fileStream;import java.io.*;public class FileStreamTest { //字符流测试第一种方法 public static void filerReaderTest(String path) { FileReader fileReader = null; try { File file = new File(path); fileReader

2021-01-12 20:10:50 102

原创 File类的一些常用用法

package file;import java.io.File;import java.io.IOException;public class FileTest { //创建多个文件和目录 public static void createFileAndDir(String path) throws IOException { File dirFile = new File(path); //创建多个目录 dirFile.mkdi

2021-01-12 17:26:21 74

原创 java通过反射获取到list泛型的类型

Field[] fields = bean.getClass().getDeclaredFields(); for(Field f : fields){ f.setAccessible(true); if(f.getType() == java.util.List.class){ // 如果是List类型,得到其Generic的类型 Type genericType = f.getGenericType(); if(genericType == null) continue;

2020-12-27 20:11:33 11235

原创 java中如何获取到java的参数名

在反射的时候我们可以通过class的getParameterNames()反射获得参数的名称,但是这个名称并不是参数的真实名称,而是类似于arg0,arg1等占位名称。下面介绍一种方法获得参数真实名称DefaultParameterNameDiscoverer discover = new DefaultParameterNameDiscoverer();String[] parameterNames = discover.getParameterNames(method);其中parameter

2020-12-27 16:42:41 659

原创 spring el 表达示解析

import org.springframework.expression.EvaluationContext;import org.springframework.expression.Expression;import org.springframework.expression.ExpressionParser;import org.springframework.expression.common.TemplateParserContext;import org.springframewor

2020-12-27 16:33:23 285

原创 通过Callable和Future创建线程

通过Callable和Future创建线程public class Test { public static void main(String[] args) { ExecutorService executor = Executors.newCachedThreadPool(); Task task = new Task(); Future<Integer> result = executor.submit(task);

2020-12-24 11:27:41 241

原创 centos7安装dockers

安装Docker我是虚拟机装的Centos7,linux 3.10 内核,docker官方说至少3.8以上,建议3.10以上(ubuntu下要linux内核3.8以上, RHEL/Centos 的内核修补过, centos6.5的版本就可以——这个可以试试)1,root账户登录,查看内核版本如下[root@localhost ~]# uname -aLinux localhost.loca...

2019-12-31 18:50:18 196

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除