Easter79 Easter79
4年前
Spring项目JUnit测试报错ClassNotFoundException解决
Eclipse项目上有红色感叹号,各包显示正常。用JUnit测试部分能运行,部分报错,报错如下:ClassnotfoundUserTestjava.lang.ClassNotFoundException:UserTestatjava.net.URLClassLoader.findClass(URLClassLoader.java:3
Stella981 Stella981
4年前
NIO的Buffer&Channel&Selector
java的NIO和AIO(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.cnblogs.com%2Fwadeluffy%2Fp%2F5855362.html)
Stella981 Stella981
4年前
ArrayBlockingQueue 和LinkedBlockQueue
ArrayBlockingQueueArrayBlockingQueue是Java多线程常用的线程安全的一个集合,基于数组实现,继承自AbstractQueue,实现了BlockingQueue和Serializable接口。//先看看器内部的成员变量:privatestaticfinallongserialV
Wesley13 Wesley13
4年前
Java根据当前日期获得这一周的日期
Java根据当前日期获得这一周的日期,不是很经常用,但是用起来又不是很好找的代码!/测试@paramargs/publicstaticvoidmain(Stringargs){//定义输出日期格式SimpleDateFormatsd
Stella981 Stella981
4年前
Solr
1Solr部署1.1环境准备:系统环境:CentOSLinuxrelease7.2.1511(Core)软件环境:Hadoop环境已搭建,其中包括了java以及zookeeperJavaversion"1.7.0\_79"Zookeeper3.4.5cdh5.2.
Wesley13 Wesley13
4年前
AQS
AQS初探1.AQS(AbstractQueuedSychronizer)简述1.AbstractQueuedSychronizer是java.util.concurrent包下同步器类的灵魂组件,很多同步组件都是基于它实现的,比如CountD
Wesley13 Wesley13
4年前
Java实现归并排序(转)
Java实现归并排序(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.cnblogs.com%2Foffanruice%2Fp%2F7678801.html)
Stella981 Stella981
4年前
RabbitMQ 的消息确认机制(图文+代码)详解!
!(https://oscimg.oschina.net/oscnet/ff8519ec5217460387cbb82983099188.jpg)Java技术栈www.javastack.cn关注阅读更多优质文章(https://www.oschina.net/action/GoToLink?urlhttp
Wesley13 Wesley13
4年前
Java反射工具包reflections
1\.简介reflections是一个Java反射工具包,使用它可以非常方便的获取一下字段或者方法。2\.maven<dependency<groupIdorg.reflections</groupId<artifactIdreflections</arti