The Way to Pro Full Stack

Do things in a simple way

Java simple dead lock example

This is just a simple example to demonstrate dead lock.

How to implement Spring @Enable-* annotation and register beans at runtime

We already know that Spring has a great plugin or module like system based on the @Enable-* annotation. For example, Spring Cache provides @EnableCaching to support cache abstraction, Spring Data JPA provides @EnableJpaRepositories for JPA repositories support, Spring Batch provides @EnableBatchProcessing for batch processing. So how do those annotations work and what can we benefit from them?

Java ArrayList vs LinkedList

When we are going to use a List, we were taught to write the following the code: List list = new ArrayList<>(); And to avoid another List implementation: LinkedList, is this always true and why?

Spring Seed -- A J2EE Spring framework seed project

A seed project based on Spring Framework family, including Spring Data JPA, Spring Data Redis and so on.

An implementation of CJK MMSEG tokenizer algorithm with Sogou Dictionary.

An implementation of CJK MMSEG tokenizer algorithm with Sogou Chinese Dictionary.

Simplest way to set up your own VPN server based on AWS

Your own VPN server = AWS EC2 + docker + L2TP image Register your AWS account Use the following EC2 userdata to launch a free tier Ubuntu EC2, you need to replace YOUR_SEC,YOUR_USERNAME,YOUR_PASSWORD: