自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 数组索引越界

数组只有5个元素,却去访问第10个元素int[] scores = new int[]{1,2,3,4,5};System.out.println(scores[10]);执行结果:Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 10at javase.base.TestArea...

2019-09-26 15:43:00 786

转载 runtime的作用

runtime主要就是做一些底层的操作,如: 1. 动态的添加对象的成员变量和方法 2.动态交换两个方法的实现(可以替换系统的方法) 3.获得某个类的所有成员方法、所有成员变量 4. 实现分类也可以添加属性 5.实现NSCoding的自动归档和解档 6.实现字典转模型的自动转换https://www.jianshu.com/p/fddde8...

2019-09-26 09:45:00 592

转载 springboot项目无法导入import org.apache.http.client.HttpClient

虽然有了httpclient的jar包依赖。但是在项目中却一直都无法导入经过一层一层的进入pom.xml发现原来eureka-client和ribbon下的httpclient包都是声明为runtime没有参与项目的编译环节所以在项目中显示的调用httpclient下的类时并没办法import进来。只能在自己当前项目的dependency下声明这个依赖才可以成功的import...

2019-09-26 09:43:00 2410

转载 freemarker 的xml模板

public String xmlFormwork(String xmlPath, String xmlName, String format, Map<String, Object> dataMap) { String xmlString = ""; // 得FreeMarker配置对象 // 创建Configura...

2019-09-25 11:35:00 874

转载 RestTemplate详解

https://www.cnblogs.com/javazhiyin/p/9851775.html转载于:https://www.cnblogs.com/lingcheng7777/p/11571098.html

2019-09-23 10:46:00 110

转载 No identifier specified for entity

没有指定的实体标识符1、手动给表添加主键2、正确添加位置如图3、检查entity和@table是否制定了正确的表名称转载于:https://www.cnblogs.com/lingcheng7777/p/11555615.html...

2019-09-20 10:51:00 129

转载 java.lang.ArrayIndexOutOfBoundsException: 1

数组下标越界:java.lang.ArrayIndexOutOfBoundsException: 1转载于:https://www.cnblogs.com/lingcheng7777/p/11555006.html

2019-09-20 09:39:00 1499

转载 Java获取XML节点总结之读取XML文档节点

https://www.cnblogs.com/vastsum/p/5925033.html转载于:https://www.cnblogs.com/lingcheng7777/p/11539870.html

2019-09-18 09:58:00 214

转载 freemarker

FreeMarker是一款模板引擎: 即一种基于模板和要改变的数据, 并用来生成输出文本(HTML网页、电子邮件、配置文件、源代码等)的通用工具。 它不是面向最终用户的,而是一个Java类库,是一款程序员可以嵌入他们所开发产品的组件。springboot yml文件配置 http: encoding: force: true ...

2019-09-17 13:47:00 96

转载 Page与Slice

官方文档A Page knows about the total number of elements and pages available. It does so by the infrastructure triggering a count query to calculate the overall number. As this might be expensive ...

2019-09-12 17:07:00 223

转载 Missing artifact com.oracle:ojdbc6:jar:11.2.0.1.0 解决办法

改一下版本号,从阿里云下载的jar包,附上代码<!-- 数据库驱动 --> <dependency><groupId>com.oracle</groupId><artifactId>ojdbc6</artifactId><version>11.2.0.3</version&...

2019-09-03 15:46:00 695

转载 Docker笔记

http://note.youdao.com/noteshare?id=f81589c8ea58000647de14d27bdc7494&sub=AA82CD38D732417BAD94E272DE3A23A1转载于:https://www.cnblogs.com/lingcheng7777/p/11452062.html

2019-09-03 11:36:00 104

转载 org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing

@RequestBody对应http请求body,当请求body为空时,异常!https://www.cnblogs.com/dennyzhangdd/p/7780221.html转载于:https://www.cnblogs.com/lingcheng7777/p/11452016.html

2019-09-03 11:30:00 1581

转载 Java8 -> Lambda

https://blog.csdn.net/ioriogami/article/details/12782141/转载于:https://www.cnblogs.com/lingcheng7777/p/11444607.html

2019-09-02 08:43:00 100

转载 @Qualifier

qualifier的意思是合格者,通过这个标示,表明了哪个实现类才是我们所需要的,我们修改调用代码,添加@Qualifier注解,需要注意的是@Qualifier的参数名称必须为我们之前定义@Service注解的名称之一!@Controller@RequestMapping("/emplayee.do")public class EmployeeInfoControl {...

2019-08-29 10:53:00 141

转载 @Value("#{}")与@Value("${}")的区别

@Value(“#{}”) 表示SpEl表达式通常用来获取bean的属性,或者调用bean的某个方法。当然还有可以表示常量用 @Value(“${xxxx}”)注解从配置文件读取值的用法转载于:https://www.cnblogs.com/lingcheng7777/p/11428043.html...

2019-08-29 10:04:00 295

转载 Spring <context:property-placeholder/>的作用

https://www.cnblogs.com/baininghan/p/3995710.html转载于:https://www.cnblogs.com/lingcheng7777/p/11344249.html

2019-08-13 10:17:00 167

转载 spring cloud组件详解

https://blog.csdn.net/justlpf/article/details/80342524转载于:https://www.cnblogs.com/lingcheng7777/p/11344152.html

2019-08-13 10:04:00 141

转载 Spring Cloud Eureka 常用配置及说明

https://www.cnblogs.com/li3807/p/7282492.html转载于:https://www.cnblogs.com/lingcheng7777/p/11343872.html

2019-08-13 09:23:00 100

转载 HttpClient

HttpClient相比传统JDK自带的URLConnection,增加了易用性和灵活性,它不仅使客户端发送Http请求变得容易,而且也方便开发人员测试接口(基于Http协议的),提高了开发的效率,也方便提高代码的健壮性。使用方法使用HttpClient发送请求、接收响应1.创建HttpClient对象。2.创建请求方法的实例,并指定请求URL。如果需要发送GET请求...

2019-08-08 09:23:00 106

空空如也

空空如也

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

TA关注的人

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