Hello-javasec Java Security Code Audit
Hello-javasec Code Audit
Environment: https://github.com/j3ers3/Hello-Java-Sec
Configure the database and start the project directly.
This project is built with Spring Boot.
Swagger and Actuator Unauthenticated Access
When examining dependencies, both Swagger and Actuator were present, so I reviewed their configurations.
Swagger had no securit ...
Posted on Thu, 06 Aug 2026 16:51:15 +0000 by maltech
Permission Management System Development: Controller Layer, Unified Response Result, and Knife4j Integration
5. Controller Layer
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.example.permission.model.system.SysRole;
import com.example.permiss ...
Posted on Mon, 03 Aug 2026 16:20:17 +0000 by Snooble
Java Development Essentials: Loops, Exception Handling, and API Documentation
The enhanced for-loop, also known as the "for-each" loop, provides a simplified syntax for iterating over arrays and collections. Unlike the traditional for-loop which requires manual management of an index counter, the enhanced version automatically iterates through each element.
Traditional vs. Enhanced Syntax
Consider an array of i ...
Posted on Sun, 02 Aug 2026 16:31:38 +0000 by ace01
Integrating Swagger 2 with Spring Boot for API Documentation and Testing
1. Project Dependencies
Add the following coordinates to your pom.xml to enable Swagger 2 and the enhanced Bootstrap UI theme:
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.9.2</version>
</dependency>
<dependency>
<grou ...
Posted on Thu, 09 Jul 2026 17:07:41 +0000 by LacOniC
API Documentation with Swagger in Spring Boot
Swagger Overview
Swagger is an open-source framework that simplifies API documentation by generating interactive, machine-readable specifications from code annotations. It enables frontend and backend teams to collaborate efficiently by providing real-time API documentation and a built-in testing interface.
Project Setup
Maven Dependencies
Add ...
Posted on Thu, 09 Jul 2026 16:18:01 +0000 by avario
Implementing API Versioning with Swagger in ASP.NET Core Web API
Building upon the foundational guide for integrating Swagger into an ASP.NET Core Web API, this article explores how to implement version control for API documentation.
1. Define API Version Enum
public enum ApiVersion
{
/// <summary>
/// Version 1
/// </summary>
V1 = 1,
/// <summary>
/// Version 2
...
Posted on Thu, 02 Jul 2026 17:27:57 +0000 by seikan
Standardizing API Responses and Exception Handling in NestJS
Response Transformation InterceptorApplications often require a consistent structure for API responses, such as wrapping data in an object containing status codes and messages. To achieve this globally in NestJS, a custom interceptor can be implemented to map successful request responses into a standardized format.Generate the interceptor scaff ...
Posted on Thu, 02 Jul 2026 16:26:50 +0000 by sholtzrevtek
Resolving Swagger Configuration Issues in Spring Boot Applications
Resolving Swagger Configuration Issues in Spring Boot Applications
Problem: org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
Method 1
Dependency Configuration:
<dependency>
<groupId>io.springfox</groupId>
& ...
Posted on Fri, 05 Jun 2026 18:05:00 +0000 by ozone
News Feed Platform Development: Environment Configuration and Channel Management Implementation
1. Project Background and Architecture
1.1 Business Context
Mobile news consumption has become dominant as smartphone usage patterns evolve. Users increasingly access content during fragmented time periods, driving demand for personalized news aggregation platforms. This system addresses these needs through a microservices architecture combined ...
Posted on Thu, 04 Jun 2026 16:41:16 +0000 by xterra
Configuring Swagger Documentation for ASP.NET Core Web APIs
Project Initialization
To begin, launch Visual Studio and create a new project using the "ASP.NET Core Web Application" template. After naming the solution and selecting a location, choose the API template targeting .NET Core (specifically version 3.1). For simplicity in local testing, you may uncheck the "Configure for HTTPS" option found in t ...
Posted on Sat, 09 May 2026 01:36:54 +0000 by mjm