虾米大王 虾米大王
3年前
java代码092
code092.jsp通过FindServlet类查询分页数据所有图书信息ID图书名称价格数量作者<%Listlist1(List)request.getAttribute("list");for(code089book:list1)%
九路 九路
4年前
从面试角度分析ArrayList源码
注:本系列文章中用到的jdk版本均为java8ArrayList类图如下:ArrayList的底层是由数组实现的,数组的特点是固定大小,而ArrayList实现了动
Stella981 Stella981
3年前
BigDecimal相加的问题
问题描述:BigDecimalamountCountBigDecimal.ZERO;amountCount.add(newBigDecimal(100));结果是amountCount值依然为0解决方法:BigDecimal为不可变类, 所以执行运算的结果需要再返回给amountCount
Stella981 Stella981
3年前
Spring 源码(九)@Autowired注解实现原理(Spring Bean的自动装配)
@Autowired注解的实现过程,其实就是SpringBean的自动装配过程。通过看@Autowired源码注释部分我们可以看到@Autowired的实现是通过AutowiredAnnotationBeanPostProcessor后置处理器中实现的。AutowiredAnnotationBeanPostProcessor类图
Stella981 Stella981
3年前
Scanner NextChar in Java Example
Java中的Scanner类具有一些方法:next(),nextInt(),nextLong(),nextLine()等,但没有<ahref"https://www.javaspring.net/java/javanextchar"rel"dofollow"nextChar()</a。这是一个从java.util.Scanner
Easter79 Easter79
3年前
Tars http服务
http服务发布到平台后可以直接使用http请求来调用,注意发布服务时选择非tars协议!1,创建一个springboot项目,并在启动类添加 @EnableTarsServer注解@SpringBootApplication@EnableTarsServerpublicclassTarsSp
Stella981 Stella981
3年前
GuozhongCrawler看准网爬虫动态切换IP漫爬虫
有些关于URL去重的方面代码没有提供,需要自己去实现。主要这里提供思路项目地址:http://git.oschina.net/woshidaniu/GuozhongCrawler/tree/master/example/changeProxyIp/首先爬虫入口类:publicclassPervadeSpider{  
Wesley13 Wesley13
3年前
Java集合
HashMap\_详解简述实现了什么接口Map和抽象类AbstractMapCloneableSerializable核心内容线程不同步。根据key的hashcode进行存储,内部使用静态内部类Node的数组进行存
Stella981 Stella981
3年前
Kafka多线程消费消息创建线程池并封装成Jar包
XML及属性配置1.业务处理(kiafka.worker.xml)<?xmlversion"1.0"encoding"UTF8"?<root<topics<!name:要消费的topic;<!worker:执行消费逻辑的worker,配置值为执行的类
Wesley13 Wesley13
3年前
JDK1.8新特性之类工厂、迭代循环应用
1创建实体类Person!(https://static.oschina.net/uploads/space/2017/1220/095547_B682_2313055.png)2创建工厂接口PersonFactory!(https://static.oschina.net/uploads/space/2017/1220/095711