Quartz: The Preferred Java Scheduling Framework

Quartz: The Preferred Java Scheduling Framework

▼ Click the card below to follow me ▲ Click the card above to follow me Quartz: The Preferred Java Scheduling Framework In software development, there are often requirements for scheduled tasks, such as collecting data every midnight, sending email reminders periodically, or synchronizing data at regular intervals. When it comes to Java scheduling frameworks, … Read more

Real-Time Scheduling Example Using OptaPlanner

Real-Time Scheduling Example Using OptaPlanner

Geoffrey De Smet, the founder of OptaPlanner, and his team demonstrated a real-time planning and scheduling example using OptaPlanner at the 2019 Red Hat Summit keynote. Geoffrey and his team dedicated three blog posts to describe this program. This program and its related blog posts are considered classic works of OptaPlanner in the field of … Read more

Exploring Bluetooth Low Energy Communication in Android

Exploring Bluetooth Low Energy Communication in Android

Hello everyone, I am an experienced Java tutorial author. Today we will learn how to use Bluetooth Low Energy (BLE) for Android development. BLE is an emerging Bluetooth technology that helps us develop Bluetooth applications with lower power consumption and more stable connections. BLE is a new low-power Bluetooth technology introduced with Bluetooth 4.0. Compared … Read more

OkHttp: A Java Network Access Pilot

OkHttp: A Java Network Access Pilot

OkHttp: A Java Network Access Pilot! Hello, everyone! I’m Niu Ge, a programmer who transitioned from testing to Java development. Today, let’s talk about OkHttp! This is a tool that lets you “fly” in Java network access, just like a well-trained pilot, allowing your program to soar freely in the network world! Do you remember … Read more

Getting Started with OkHttp for Java Network Requests

Getting Started with OkHttp for Java Network Requests

OkHttp: A Java Network Request Messenger! Introduction: Niu Ge’s Pitfall Diary Hey friends, today Niu Ge wants to talk to you about a Java gem—OkHttp! When Niu Ge first transitioned to Java development, there was a project that required making an API call. I ended up using HttpURLConnection, wrote a bunch of code, and encountered … Read more

Micronaut HTTP Client: A Pioneer in Efficient Java Networking

Micronaut HTTP Client: A Pioneer in Efficient Java Networking

Micronaut HTTP Client: A New Choice for High-Performance Network RequestsIn modern microservices architecture, the HTTP client is a key component that connects various services. The Micronaut framework provides a powerful HTTP client that is not only high-performing but also user-friendly. Let’s delve into this excellent technical solution. Core Features The Micronaut HTTP Client has the … Read more

Using Java’s HttpClient for Network Communication

Using Java's HttpClient for Network Communication

Using Java’s HttpClient In modern software development, network communication is an indispensable part. The Java HttpClient library provides a simple and efficient way to send HTTP requests and handle responses. Whether interacting with RESTful APIs or downloading files, HttpClient helps us accomplish tasks easily. In this article, I will introduce how to use Java’s HttpClient, … Read more

Apache HttpClient: The Java Network Request Courier

Apache HttpClient: The Java Network Request Courier

Apache HttpClient – The Java Network Request Courier Hello everyone, I am Niu Ge, transitioning from testing to Java! Today, we are going to talk about the “courier” in Java – Apache HttpClient. I still remember the first project I took on after transitioning, which required calling several external APIs. At that time, I was … Read more

Design Principles: A Discussion on SPI and API

Design Principles: A Discussion on SPI and API

Author: Happy Framework Original: https://www.cnblogs.com/happyframework/p/3325560.html Background My first encounter with SPI was while reading “The Art of Software Framework Design”. Later, I gradually discovered this way of organizing code in JDBC and SpringBoot. Here, I present a thought process on why we should distinguish between SPI and API. Starting from interface-oriented programming We introduced an … Read more

An Overview of Spring SPI Mechanism

An Overview of Spring SPI Mechanism

This article introduces the SPI mechanism in Spring. abstract.png Basic Practice Spring SPI draws on the design philosophy of Java SPI. It implements the SPI mechanism through the spring.factories method, providing extensibility to the framework without modifying its source code. Specifically, we first define an SPI interface. package com.aaron.application.SpringSpi.BasicSpiDemo; public interface Greet { void hello(); … Read more