自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

nobody

HTTP2 ======>>. HTTP/3 || K8S

  • 博客(40)
  • 资源 (40)
  • 收藏
  • 关注

原创 非spring管理的类实例如何托管给spring容器管理

/** * 非spring管理的类实例如何托管给spring容器管理 * * 下面是摘自spring文档 . * pdf版本:spring-framework-reference4.1.3.pdf: http://www.t00y.com/file/81375143 * * the ApplicationContext implementations also * permit

2014-12-30 22:41:16 2327

转载 ConcurrentHashMap 解读(一)

一、核心思想 1、锁分离技术:ConcurrentHashMap首先将数据分成一段一段(segment)的存储,然后给每一段数据配一把锁,当一个线程占用锁访问其中一个段数据的时候,其他段的数据也能被其他线程访问。 2、 final 关键字保证HashEntery 对象的不变性,来降低执行读操作的线程在遍历链表期间对加锁的需求:ConcurrentHashMap完全允

2014-12-28 15:47:19 826

转载 Difference between Abstract Class and Interface in Java

Abstract Class and Interface are core part of java programming language and whether to chose interface or abstract class or Interface while designing our system is a design decision that every archi

2014-12-27 23:45:38 780

转载 Java Exception Handling Tutorial with Examples and Best Practices

Exception is an error event that can happen during the execution of a program and disrupts its normal flow. Java provides a robust and object oriented way to handle exception scenarios, known as Java

2014-12-27 20:43:51 1281

转载 Multiple Inheritance in Java and Composition vs Inheritance

Sometime back I wrote few posts about inheritance, interface and composition in java. In this post, we will look into multiple inheritance and then learn about benefits of composition over inheritan

2014-12-27 20:23:29 879

转载 Java Reflection Tutorial for Classes, Methods, Fields, Constructors, Annotations and much more

Reflection in java provides ability to inspect and modify the runtime behavior of applications. Reflection is one of the advance topic of core java. Using reflection we can inspect a class,interface

2014-12-27 19:57:11 1074

转载 JSP Interview Questions and Answers

SP is an integral part of any Java EE web application and recently I have wrote a lot about different features in JSP.We started from the basics of JSP, JSP scripting and ended with JSP custom tag

2014-12-27 19:28:28 985

转载 Java Exception Interview Questions and Answers

ava provides a robust and object-oriented approach to handle exception scenarios known as Java Exception Handling.Sometime back I wrote a long post on Java Exception Handling and today I am list

2014-12-27 17:33:14 1044

转载 Can we declare a class as static

We can’t declare a top-level class as static however an inner class can be declared as static. If inner class is declared as static, it’s called static nested class.Static nested class is same as an

2014-12-27 16:53:33 848

转载 Core Java Interview Questions and Answers

Whether you are a fresher or highly experienced professional, core java plays a vital role in any Java/JEE interview. Core Java is the favorite area in most of the interviews and plays a crucial rol

2014-12-27 16:30:07 1370

转载 JDBC Statement vs PreparedStatement – SQL Injection Example

While working with JDBC API for database connectivity, we can use Statement orPreparedStatement to execute queries. These queries can be CRUD operation queries or even DDL queries to create or dro

2014-12-27 15:22:41 993

转载 What are the benefits of PreparedStatement over Statement

Some of the benefits of PreparedStatement over Statement are:PreparedStatement helps us in preventing SQL injection attacks because it automatically escapes the special characters.PreparedStat

2014-12-27 15:09:24 727

转载 Java 8 Interface Changes – static methods, default methods, functional Interfaces

One of the biggest design change in Java 8 is with the concept of interfaces. Prior to Java 7, we could have only method declarations in the interfaces. But from Java 8, we can have default methods 

2014-12-27 10:50:52 2074

原创 IntelliJ IDEA 14 注册码

IntelliJ IDEA 14 注册码用户 o 密钥 63625-MQ87K-3SRZ2-8MQYB-6NQZC-2Z8K6

2014-12-25 23:28:03 1295

原创 dubbo总结1

/** * 一台机器上一个jvm进程内,启动两个相同的dubbo服务,客户端只能调到一个,这种聚合不能实现.这也不是是集群概念, * dubbo会按照重复url处理(zookeeper中url是一样的,除最后的时间戳). *  * 一个jvm 一个进程内启动两个相同dubbo应用,注册在zookeeper里面的地址是一样的(除。。), * dubbo 在 RegistryDir

2014-12-25 21:36:21 1401

原创 dubbo 分组聚合

** * dubbo merger 接口声明 * 对于要merger 接口中方法返回类型的注意事项, *  * 详细查看com.alibaba.dubbo.rpc.cluster.merger * 这个包下面的类,也就是dubbo支持的返回类型/** * dubbo merger不同服务实现结果集. 详细查看com.alibaba.dubbo.rpc.clust

2014-12-22 22:12:13 3938

原创 log4j:WARN Please initialize the log4j system properly.

log4j:WARN No appenders could be found for logger (org.springframework.context.support.ClassPathXmlApplicationContext).log4j:WARN Please initialize the log4j system properly.log4j:WARN See http://lo

2014-12-21 12:01:43 1028

原创 try ,finally都抛出异常如何处理.如果try中抛出了异常,在控制权转移到调用栈上一层代码之前, finally 语句块也会执行,如果finally抛出异常,try语句快抛出的那个异常就

package com.github.jdk7;import org.junit.Test;import org.slf4j.Logger;import org.slf4j.LoggerFactory;/** * try ,finally都抛出异常如何处理.如果try中抛出了异常,在控制权转移到调用栈上一层代码之前, * finally 语句块也会执行,如果finally抛出异常,

2014-12-14 23:13:49 3454

转载 jstorm基本概念

基本概念longdafeng edited this page on 29 Sep · 4 revisions Pages 690.7.1 changelist0.9.0 change list0.9.0 性能测试0.9.1_change_list0.9.2_change_list0.9.3_change_listAck 机制Ac

2014-12-13 21:07:47 1583

原创 日志如何打印异常堆栈信息。

package com.doctor.slf4j;import org.junit.Test;import org.slf4j.Logger;import org.slf4j.LoggerFactory;/** * 如何打印异常堆栈信息。 * @author doctor * * @time 2014年12月11日 上午9:49:00 */public class Lo

2014-12-12 20:58:23 13248

原创 spring 版本冲突maven报错

12-12 08:45:38.564 main  ERROR o.s.w.c.ContextLoader - Context initialization failedjava.lang.NoSuchMethodError: org.springframework.expression.spel.SpelParserConfiguration.(Lorg/springframework/exp

2014-12-12 08:47:39 15222

原创 .嵌入式jetty启动spring(java配置方式),junit测试用.标准spring 配置(java config) 嵌入式jetty9启动

package com.doctor.embeddedjetty;import java.util.concurrent.TimeUnit;import org.eclipse.jetty.server.Server;import org.eclipse.jetty.servlet.ServletContextHandler;import org.eclipse.jetty.servl

2014-12-08 21:37:58 2727

原创 嵌入式jetty启动spring(java配置方式),junit测试用

package com.doctor.embeddedjetty;import java.util.concurrent.TimeUnit;import org.eclipse.jetty.server.Server;import org.eclipse.jetty.servlet.ServletContextHandler;import org.eclipse.jetty.servl

2014-12-07 10:49:27 2287

转载 使用 Cobertura 和反射机制提高 Java 单元测试中的代码覆盖率

使用 Cobertura 和反射机制提高 Java 单元测试中的代码覆盖率本文将介绍两种开发实践,用于提高 Java 单元测试中的代码覆盖率。代码覆盖率 = (被测代码 / 代码总数)* 100%。提高被测代码数量或降低代码总数,均可达到提高代码覆盖率的效果。在本文中,您将看到如何通过使用反射机制,在外部直接对目标类中的不可访问成员进行测试,以提高被测代码数量;以及通过修改 Cober

2014-12-05 14:06:28 953

转载 日志聚合与分析

日志聚合与分析在程序中正确的地方输出合适的日志消息,只是合理使用日志的第一步。日志记录的真正作用在于当有问题发生时,能够帮助开发人员很快的定位问题所在。不过一个实用的系统通常由很多个不同的部分组成。这其中包括所开发的程序本身,也包括所依赖的第三方应用程序。以一个典型的电子商务网站为例,除了程序本身,还包括所依赖的底层操作系统、应用服务器、数据库、HTTP 服务器和代理服务器和缓存等。当一个问题

2014-12-05 13:52:10 6969 3

原创 如何让不受spring管理的类具有spring自动注入的特性.--AutowireCapableBeanFactory

package spring.core.pracitce;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import org.apache.commons.lang3.StringUtils;import org.junit.Test;import

2014-12-04 22:55:12 3879 2

翻译 日志收集分析工具logstash + elasticsearch

Your logs are your data: logstash + elasticsearchby Andrey Redkoon February 25th, 2013| Filed in: Enterprise JavaTags: Elasticsearch,Logging,LogstashTopic of today’s post stays a b

2014-12-03 19:02:45 2070

转载 Spring Singleton, Request, Session Beans and Thread Safety

by Tarun Sapraon November 2nd, 2011| Filed in: Enterprise JavaTags: Spring,Spring MVC The Spring framework ecosystem comprising of so many useful frameworks has become the backbone o

2014-12-03 15:12:06 912

原创 spring 配置资源路径时候,classpath:/,classpath:,不带前缀的区别

/** * spring 配置资源路径时候,classpath:/,classpath:,不带前缀的区别, * 其实没区别,spring 规定 "classpath:" pseudo-URL,伪url路径,在处理这种路径前缀 * 时候,会把这个伪url去掉。 * @author doctor * * @time 2014年12月2日 下午6:28:12 */public cla

2014-12-02 18:31:37 3616

转载 How to create user defined properties in Maven

How to create user defined properties in MavenPosted on August 18, 2012 ,     Last modified : August 28, 2012By mkyongCustom properties or variables are u

2014-12-01 19:13:21 1335

转载 Copy file to / from server via SCP command

Copy file to / from server via SCP commandPosted on August 23, 2012 ,     Last modified : August 28, 2012By mkyongSCP uses Secure Shell (SSH) to transfe

2014-12-01 19:10:29 1139

转载 TestNG + Selenium – Load Testing Example

TestNG + Selenium – Load Testing ExamplePosted on January 4, 2014By mkyongIn this tutorial, we will show you how to use @Test attributes invocationCount

2014-12-01 17:57:35 1082

转载 Maven + Emma code coverage example

Maven + Emma code coverage examplePosted on January 11, 2014 ,     Last modified : January 13, 2014By mkyongEmma is a free Java code coverage tool. In t

2014-12-01 17:55:38 1929

转载 Maven + Cobertura code coverage example

Maven + Cobertura code coverage examplePosted on January 14, 2014 ,     Last modified : January 13, 2014By mkyongCobertura is a free Java code coverage

2014-12-01 17:53:58 1637

转载 Java – Read a file from resources folder

Java – Read a file from resources folderPosted on July 30, 2014By mkyongIn this tutorial, we will show you how to read a file from a resources folder, in

2014-12-01 17:47:32 1434

转载 Maven – Exclude logback.xml in Jar file

Posted on August 19, 2014 ,     Last modified : October 19, 2014By mkyongThis example shows you how to use Maven to exclude the logback.xml file from the final Ja

2014-12-01 17:40:59 2298

转载 Maven – Exclude log4j.properties in Jar file Posted on October 19, 2014 By mkyong This example sho

Maven – Exclude log4j.properties in Jar filePosted on October 19, 2014By mkyongThis example shows you how to use Maven to exclude the log4j.properties fil

2014-12-01 17:40:47 1647

转载 Create a fat Jar file – Maven Assembly Plugin

Create a fat Jar file – Maven Assembly PluginPosted on October 21, 2014 ,     Last modified : October 21, 2014By mkyongIn this tutorial, we will show yo

2014-12-01 17:34:47 1509

转载 maven 创建单jar 文件插件

Maven – Create a fat Jar file – One-JAR examplePosted on October 18, 2014By mkyongIn this tutorial, we will show you how to use Maven build tool, One-JA

2014-12-01 17:32:58 1112

转载 Create a fat Jar file – Maven Shade Plugin

Create a fat Jar file – Maven Shade PluginPosted on September 22, 2014 ,     Last modified : October 21, 2014By mkyongIn this tutorial, we will show you

2014-12-01 17:31:32 1588

Packt.Design.Patterns.and.Best.Practices.in.Java.9.1786463598.epub.zip

Packt.Design.Patterns.and.Best.Practices.in.Java.9.1786463598 Packt.Design.Patterns.and.Best.Practices.in.Java.9.1786463598

2019-09-07

Packt.Mastering.Java.9.1786468735.zip

Packt.Mastering.Java.9 Packt.Mastering.Java.9 Packt.Mastering.Java.9

2019-09-07

Java 9 Dependency Injection - Nilang Patel.pdf.zip

Java 9 Dependency Injection - Nilang Patel Java 9 Dependency Injection - Nilang Patel Java 9 Dependency Injection - Nilang Patel

2019-09-07

Spring 5 Recipes A Problem-Solution Approach.zip

Spring 5 Recipes A Problem-Solution Approach

2019-09-03

Syngress.SQL.Injection.Attacks.and.Defense.2nd.Edition.1597499633.zip

Syngress.SQL.Injection.Attacks.and.Defense.2nd.Edition.1597499633

2019-08-31

Syngress.SQL.Injection.Attacks.and.Defense.2nd.Edition.1597499633.epub

Syngress.SQL.Injection.Attacks.and.Defense.2nd.Edition.1597499633

2019-08-31

Syngress.SQL.Injection.Attacks.and.Defense.2nd.Edition.1597499633.mobi

Syngress.SQL.Injection.Attacks.and.Defense.2nd.Edition.1597499633

2019-08-31

How Software Works.pdf.zip

How Software Works How Software Works How Software Works

2019-08-24

Composing.Software.2019.2.mobi

Composing.Software.2019.2

2019-07-18

Composing.Software.2019.2.pdf

Composing.Software.2019.2

2019-07-18

OCP Java SE 8 Programmer II Exam Guide.pdf

OCP Java SE 8 Programmer II Exam Guide;OCP Java SE 8 Programmer II Exam Guide

2019-07-14

Learn Java 12 Programming.epub

Learn Java 12 Programming;Learn Java 12 Programming;Learn Java 12 Programming

2019-07-13

Social Network-Based Recommender Systems

Social Network-Based Recommender Systems Social Network-Based Recommender Systems

2018-04-07

The Robert C. Martin Clean Code Collection.

The Robert C. Martin Clean Code Collection. The Robert C. Martin Clean Code Collection.

2018-02-03

Hadoop Explained.pdf )

Hadoop Explained.pdf Hadoop Explained.pdf ) Hadoop Explained.pdf )

2018-02-03

Java Deep Learning Essentials.epub

Java Deep Learning Essentials.epub Java Deep Learning Essentials.epub

2018-02-03

Mastering Microservices with Java.pdf

Mastering Microservices with Java.pdf Mastering Microservices with Java.pdf

2018-02-03

Mastering Microservices with Java.mob

Mastering Microservices with Java.mob Mastering Microservices with Java.mob

2018-02-03

esper官方文档

esper官方文档,最新5.20.学习cep的开源实现

2015-06-20

C++ Programming Fundamentals 9781683929765

C++ Programming Fundamentals 9781683929765

2023-06-22

Advanced Data Structures and Algorithms 9789355517937

Advanced Data Structures and Algorithms 9789355517937

2023-06-22

Java.9.0.to.17.0.Cookbook

Java.9.0.to.17.0.Cookbook java9 Cookbook java10 Cookbook java11 Cookbook java12 Cookbook java13 Cookbook java14 Cookbook java15 Cookbook java16 Cookbook java17 Cookbook

2023-02-25

Mastering Python

Mastering Python

2023-02-21

Beginning Python, 3rd Editi

Beginning Python, 3rd Editi

2023-02-21

MySQL High Availability.zip

MySQL High Availability.zip

2021-04-03

SQLPerformanceExplained.pdf.zip

SQLPerformanceExplained.pdf.zip

2021-04-03

Effective.C.2020.8.zip

Effective.C.2020.8.zip

2021-01-02

Docker.Deep.Dive.2020.5.txt

Docker.Deep.Dive.2020.5.txt

2021-01-02

Docker.Deep.Dive.2020.5.zip

Docker.Deep.Dive.2020.5

2021-01-02

Design.and.Build.Great.Web.APIs.2020.10.zip

Design.and.Build.Great.Web.APIs.2020.10

2020-12-26

The.Kubernetes.Book.2020.9.epub

The.Kubernetes.Book.2020.9.epub

2020-12-26

Advanced MySQL 8 1st Edition.Pdf

Advanced MySQL 8 1st Edition.Pdf

2020-03-23

Learn Docker - Fundamentals of Docker 18.x 2018.pdf.zip

Learn Docker - Fundamentals of Docker 18.x 2018.pdf.zip Learn Docker - Fundamentals of Docker 18.x 2018.pdf.zip Learn Docker - Fundamentals of Docker 18.x 2018.pdf.zip Learn Docker - Fundamentals of Docker 18.x 2018.pdf.zip

2020-02-08

逆流而上 阿里巴巴技术成长之路.pdf.zip

逆流而上 阿里巴巴技术成长之路.pdf.zip 逆流而上 阿里巴巴技术成长之路.pdf.zip 逆流而上 阿里巴巴技术成长之路.pdf.zip

2020-02-08

Packt.Mastering.Kubernetes.1788999789.rar

Mastering.Kubernetes

2020-02-07

Introducing Maven, 2nd Edition.epub

Introducing Maven, 2nd Edition.epub Introducing Maven, 2nd Edition.epub Introducing Maven, 2nd Edition.epub

2019-11-30

Java 9 Revealed.pdf.zip

Java 9 Revealed.pdf.zip

2019-10-27

空空如也

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

TA关注的人

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