There are three ways to implement DI with @Component annotation: constructor-based injection, setter-based injection, and field-based injection. This article is talking about the different implementations.

Read more »

Dependency injection is a programming technique that makes a class independent of its dependencies. That enables you to replace dependencies without changing the class that uses them, and It reduces the risk that you have to change a class just because one of its dependencies changed. It also makes code easier to test What DI does is loosing coupling or decoupling.

Read more »

Recently I learned to deploy Django project on Elastic Beanstalk. My original thought is I get a VM and then run the app locally. However, the fact is that the way has not gone through security audits or performance tests. This article will introduce Nginx and Gunicorn in EC2 instance.

Read more »

A general study summary of 2020. As we all know, this year is tough, staying at home to take online courses, remote internship and so on. But there are still some good experiences for me to remember.

Read more »