Wesley13 Wesley13
2年前
java中使用restful web service来传输文件
【1】上传大文件:前端页面:1)同步上传:<html<body<formaction"http://localhost:8081/webProject/api/file/uploadFile"method"post"enctype"multipart/form
wanQQ wanQQ
2年前
restful 风格操作es 学习
restful风格操作es|method|url地址|描述||::|::|::||PUT|host:port/索引名/类型名/文档ID|创建文档(指定文档ID)||POST|ho
Wesley13 Wesley13
2年前
Java反射练习(一)
packagecom.slliver.reflection;importjava.lang.reflect.Constructor;importjava.lang.reflect.Field;importjava.lang.reflect.Method;importjava.lang.reflect.Modifier;/\\
Easter79 Easter79
2年前
SpringBoot自定义注解
JDK1.5起开始提供了4个元注解:@Target、@Retention、@Documented、@Inherited。何谓元注解?就是注解的注解。@Target({ElementType.PARAMETER,ElementType.METHOD})@Retention(RetentionPolicy.RUNTIME)@
Wesley13 Wesley13
2年前
Excel导出工具类.
 Excel导出工具类.POIimport java.io.OutputStream;import java.lang.reflect.Field;import java.lang.reflect.Method;import java.util.ArrayList;import java.uti
Stella981 Stella981
2年前
SpringBoot自定义注解
JDK1.5起开始提供了4个元注解:@Target、@Retention、@Documented、@Inherited。何谓元注解?就是注解的注解。@Target({ElementType.PARAMETER,ElementType.METHOD})@Retention(RetentionPolicy.RUNTIME)@
Stella981 Stella981
2年前
Spring Data Repository Query Method 源码简析
SpringData引入了一个RepositoryQueryMethod机制。使用者只需要定义一个接口,按照一定的格式声明方法,即可实现一定的查询功能。例如:interfacePersonRepositoryextendsRepository<Person,Long{List<PersonfindBy
Stella981 Stella981
2年前
C#之json字符串转xml字符串
留爪参考using System.Xml; //using System.Text; //using System.Runtime.Serialization.Json; //JsonReaderWriterFactory//以下method引用以上using    /// <summary
Stella981 Stella981
2年前
Spring Boot使用aop进行权限控制
项目中需要用到权限控制,简单的方案记录下。自定义一个注解@CheckPermission。/检查权限@authoryanyimin/@Target(ElementType.METHOD)@Retention(RetentionPolicy.RUNTIME)@Do
Wesley13 Wesley13
2年前
Java反射例子汇总 Class Constructor Method Filed
一、反射概述  在平常的开发中Java的反射技术很少被用到,一般我们都是使用公司封装或者开源框架。而反射技术已经被包含到底层框架了,因此我们很少接触到。但是有些框架的原理或者源码如果想读懂就必须要理解并会使用反射技术。例如:EventBus、BufferKnife、android的插件化等等都会用到。理解了反射技术能够帮助我们更快的理解相关框架,也可以增