Tag

Axios

0 views collected around this technical thread.

Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 14, 2025 · Backend Development

Handling CORS in Spring Boot and Vue3: Concepts, Code, and Demo

This article explains the concept of Cross‑Origin Resource Sharing (CORS), demonstrates how to identify cross‑origin requests, and provides a complete Spring Boot backend configuration together with Vue3/Axios frontend code to solve CORS issues in a full‑stack web application.

AxiosCORSCross-Origin
0 likes · 9 min read
Handling CORS in Spring Boot and Vue3: Concepts, Code, and Demo
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 27, 2025 · Frontend Development

Token Silent Refresh in Frontend Development: Concepts, Strategies, and Implementation

This article explains the fundamentals of token‑based authentication, the drawbacks of fixed token lifetimes, and presents multiple silent‑refresh techniques—including double‑token mechanisms, front‑end timers, server‑side proactive refresh, and concurrency‑safe lock strategies—along with practical code examples and performance considerations for high‑concurrency scenarios.

AxiosFrontendJWT
0 likes · 15 min read
Token Silent Refresh in Frontend Development: Concepts, Strategies, and Implementation
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 7, 2024 · Frontend Development

Comprehensive Guide to Encapsulating API Requests with Axios and TypeScript

This article explains why and how to wrap asynchronous API calls in a reusable TypeScript utility using Axios, covering request flow analysis, interceptor design, unified GET/POST/PUT/DELETE helpers, development order, and complete source code examples for a maintainable frontend architecture.

APIAxiosFrontend
0 likes · 14 min read
Comprehensive Guide to Encapsulating API Requests with Axios and TypeScript
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 4, 2024 · Frontend Development

Frontend Development: Building a Vue2 Hot‑Search Component with Element UI and Axios

This tutorial walks through setting up a Vue2 front‑end environment, installing Node.js, Vue‑CLI, Element UI, and Axios, then creates a reusable hot‑search board component, integrates it into the main app, and even shows a Java‑based Zhihu crawler for data collection.

AxiosElement UIHot Search
0 likes · 19 min read
Frontend Development: Building a Vue2 Hot‑Search Component with Element UI and Axios
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 7, 2024 · Frontend Development

Understanding Axios' Two Invocation Methods and Its Underlying Implementation

This article explains the two ways to call Axios—using a configuration object or shortcut methods—then walks through building a minimal Axios clone, detailing its constructor, prototype methods, and the clever instance creation that lets the library behave both as a function and an object.

AxiosFrontendHTTP
0 likes · 7 min read
Understanding Axios' Two Invocation Methods and Its Underlying Implementation
Java Architect Essentials
Java Architect Essentials
Jul 30, 2024 · Backend Development

Transparent Token Refresh: Client‑Side and Server‑Side Implementations

This article explains how to implement seamless, invisible token refresh for authentication systems, covering client‑side strategies using Axios interceptors and timers, server‑side gateway filters with Spring Boot, code examples for detecting token expiration, obtaining new tokens, and choosing between client and server approaches based on security and performance considerations.

AxiosJWTSpringBoot
0 likes · 23 min read
Transparent Token Refresh: Client‑Side and Server‑Side Implementations
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jul 30, 2024 · Backend Development

Building a City Weather Forecast Service with NestJS, Axios, and QWeather API

This tutorial demonstrates how to create a NestJS backend that converts Chinese city names to pinyin, retrieves the corresponding city ID from the QWeather API, and returns a 7‑day weather forecast using a unified Axios HTTP client configuration.

API IntegrationAxiosNestJS
0 likes · 6 min read
Building a City Weather Forecast Service with NestJS, Axios, and QWeather API
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jul 29, 2024 · Frontend Development

Ensuring a Single Token Request Across Multiple API Calls with a repeatOnce Function

This article explains how to prevent multiple simultaneous token requests in a web application by using a custom repeatOnce function that caches the token in localStorage and coordinates pending calls through an event emitter, ensuring only the first request fetches the token while others wait for its result.

AxiosFrontendJavaScript
0 likes · 5 min read
Ensuring a Single Token Request Across Multiple API Calls with a repeatOnce Function
Top Architect
Top Architect
Jul 25, 2024 · Backend Development

Implementing Token Silent Refresh with Spring Boot Gateway, Axios Interceptor, and Periodic Timer Monitoring

This article explains how to achieve seamless token silent refresh by handling expiration on the server side with a Spring Boot 3 gateway filter, on the client side with an Axios response interceptor, and by using a TypeScript timer to proactively refresh tokens before they expire, while also discussing the trade‑offs between server‑ and client‑side implementations.

AxiosJavaScriptSpringBoot
0 likes · 24 min read
Implementing Token Silent Refresh with Spring Boot Gateway, Axios Interceptor, and Periodic Timer Monitoring
Java Tech Enthusiast
Java Tech Enthusiast
Jul 6, 2024 · Information Security

Seamless Token Auto‑Refresh with Spring Cloud Gateway and Axios

The article presents a full‑stack solution for seamless token auto‑refresh, combining a Spring Cloud Gateway GlobalFilter that signals expiration with a custom 511 status, Axios response interceptors and a TypeScript timer on the client, plus server‑side token metadata, allowing developers to choose server‑centric or client‑centric refresh strategies.

AxiosSpringBootgateway
0 likes · 21 min read
Seamless Token Auto‑Refresh with Spring Cloud Gateway and Axios
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 19, 2024 · Frontend Development

Preventing Duplicate API Requests in Front‑end Development with Debounce, Throttle, Loading Locks, and Axios CancelToken

The article explains why repeated button clicks or searches cause duplicate API calls, discusses why debounce/throttle are not ideal, and presents three practical solutions—loading state locking, request cancellation with Axios CancelToken, and related code examples—to efficiently avoid redundant requests in Vue applications.

APIAxiosDebounce
0 likes · 7 min read
Preventing Duplicate API Requests in Front‑end Development with Debounce, Throttle, Loading Locks, and Axios CancelToken
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
May 18, 2024 · Frontend Development

Vue3 + Vite4 + Pinia + Axios Project Setup and Usage Guide

This guide walks through setting up a Vue3 project with Vite4, Pinia, and Axios—including version specifications, directory structure, installation commands, Pinia persistence, Axios configuration, auto‑import setup, and Uni‑UI integration—providing complete code snippets for each step.

AxiosFrontendPinia
0 likes · 9 min read
Vue3 + Vite4 + Pinia + Axios Project Setup and Usage Guide
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jan 15, 2024 · Backend Development

Simulating ChatGPT‑Style Typing with Spring WebFlux and SSE

This tutorial demonstrates how to use Spring WebFlux’s reactive streaming to create a ChatGPT‑like typing effect, covering backend setup, SSE integration, frontend Axios handling, and a comparison between Flux and traditional Server‑Sent Events.

AxiosJavaReactive Streams
0 likes · 8 min read
Simulating ChatGPT‑Style Typing with Spring WebFlux and SSE
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 26, 2023 · Frontend Development

Seamless JWT Token Refresh with Axios Interceptors in Frontend Applications

This article explains how to handle sudden login redirects caused by expired JWT access tokens in a web platform by using Axios response interceptors to automatically refresh tokens, queue failed requests, and retry them without disrupting the user experience.

AxiosFrontendInterceptor
0 likes · 9 min read
Seamless JWT Token Refresh with Axios Interceptors in Frontend Applications
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 14, 2023 · Frontend Development

Introducing @varlet/axle: A Progressive Request Utility Built on Axios

The article presents @varlet/axle, a progressive request utility that fully inherits Axios capabilities while adding unified request parameters, extensive configuration, built‑in interceptors, Vue composition‑API integration, and parallel request tools, offering developers a convenient library for handling HTTP calls.

AxiosFrontendHTTP
0 likes · 12 min read
Introducing @varlet/axle: A Progressive Request Utility Built on Axios
政采云技术
政采云技术
Nov 29, 2023 · Frontend Development

API Failure Resilience Using CDN and IndexedDB Caching

The article presents a comprehensive strategy for handling API outages by storing data locally with IndexedDB, synchronizing updates through a CDN, and implementing Axios interceptors and Node‑based scheduled jobs to ensure seamless user experience without white‑screen failures.

APIAxiosCDN
0 likes · 12 min read
API Failure Resilience Using CDN and IndexedDB Caching
New Oriental Technology
New Oriental Technology
Nov 17, 2023 · Frontend Development

axios introduction

Axios is a popular HTTP client for JavaScript that simplifies making HTTP requests, supports promise-based APIs, and offers features like request/response interceptors and automatic JSON data transformation.

AxiosHTTP ClientInterceptors
0 likes · 9 min read
axios introduction
DaTaobao Tech
DaTaobao Tech
Mar 27, 2023 · Frontend Development

Building a Vue + SpringBoot Management System: Setup, Architecture, and Deployment

This step‑by‑step guide shows backend developers how to create a small management system with Vue 3, TypeScript, Vite, and SpringBoot, covering the technology stack, development‑tool installation, project scaffolding, core components, routing, Pinia state, Axios API wrappers, TypeScript interfaces, environment configuration, and deployment.

AxiosFrontendPinia
0 likes · 22 min read
Building a Vue + SpringBoot Management System: Setup, Architecture, and Deployment
Sohu Tech Products
Sohu Tech Products
Nov 17, 2022 · Frontend Development

A Comprehensive Guide to Building a Flexible Axios Wrapper with Interceptors, Request Cancellation, and TypeScript in Vue3

This article demonstrates how to create a reusable Axios wrapper for Vue3 projects, covering basic class‑based encapsulation, flexible global and instance interceptors, custom request configuration types, request cancellation management, and practical testing examples, all written in TypeScript.

AxiosFrontendHTTP
0 likes · 13 min read
A Comprehensive Guide to Building a Flexible Axios Wrapper with Interceptors, Request Cancellation, and TypeScript in Vue3