Trong Java có hai cách khởi tạo một list mà nhiều bạn vẫn hay sử dụng đó là Arrays.asList() và List.of(). Tuy nhiên, để hiểu và sử dụng đúng hai phương thức này thì có lẽ không phải ai cũng nắm được. Vì vậy, bài viết này mình sẽ cùng các bạn tìm hiểu kỹ hơn về hai phương pháp khởi tạo này.
Hello, Friends!
Welcome to my blog, the blog of a minimalist software engineer. Currently, I'm working as a full-stack web engineer. I love reading, writing, and in my free time, I usually write on my blog, travel to new places, or practice calisthenics.
Jenkins CI Pipeline với Docker, GitHub, Docker Hub, Spring Boot và triển khai trên AWS EC2 - PHẦN II
Ở bài viết trước, chúng ta đã triển khai thành công Jenkins pipeline trên môi trường local. Tất nhiên, ở các môi trường khác nhau sẽ có những cấu hình khác nhau, vì vậy bài viết này mình sẽ cùng các bạn tìm hiểu cách chạy pipeline trên một server cũng như cách cấu hình ra sao.- Continuous Integration (CI) là một phần quan trọng trong quy trình DevOps, giúp tự động hoá quy trình build, test và triển khai ứng dụng. Trong bài viết này, chúng ta sẽ tìm hiểu cách xây dựng một CI pipeline sử dụng Jenkins, Docker, GitHub, Docker Hub, Spring Boot.
- Varargs were introduced in Java 5 and designed to solve the problem of handling an arbitrary number of parameters in a method. But what exactly is this problem? What are varargs and how can we use them effectively?
- Before Java 7, developers relied heavily on the traditional try-catch-finally approach to manage resources, which was often verbose and error-prone. With the introduction of try-with-resources, Java simplified this process significantly.