java-spring

Standardize NullAway setup, test strategy, and DI container design for Java Spring Boot projects.

1|Updated Sep 16, 2025
One-click install
npx skills add https://github.com/sk8metalme/ai-agent-setup --skill java-spring
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: java-spring
Source: https://github.com/sk8metalme/ai-agent-setup/tree/main/plugins/lang-java-spring/skills/java-spring
Command: npx skills add https://github.com/sk8metalme/ai-agent-setup --skill java-spring

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Java + Spring Boot開発のベストプラクティスを提供し、NullAway設定、テスト戦略、DIコンテナ設計をサポートします。

Core Features & Use Cases

  • Null安全性チェック(NullAway)
  • JUnit 5 + Mockitoのテスト戦略
  • Spring Security + JWTの統合
  • Gradleベースのビルドと依存関係管理
  • DI/アーキテクチャ設計のガイド

Quick Start

Quick Start: Gradleプロジェクトを新規作成し、NullAwayを有効化、簡易テストを追加します。

Frequently Asked Questions about java-spring

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up NullAway null-safety checks in a Spring Boot Gradle project?

NullAway is a static analysis tool integrated into Gradle builds that detects potential null pointer exceptions in Java Spring Boot projects. Enable it by adding the NullAway plugin to your Gradle configuration, annotate nullable fields with @Nullable, and run gradle build to surface violations before runtime.

What's the best way to structure tests for Spring Boot REST APIs with JUnit and Mockito?

JUnit 5 paired with Mockito provides a test strategy for Spring Boot REST APIs: use @SpringBootTest for integration tests, @ExtendWith(MockitoExtension.class) for unit tests, mock repository and service layers with @Mock, and inject mocks via @InjectMocks to isolate components and verify behavior.

How do I integrate Spring Security with JWT authentication in a Gradle Spring Boot project?

Spring Security with JWT secures REST APIs by validating token-based authentication. Configure Spring Security filters to intercept requests, validate JWT tokens, and extract user claims. Add security dependencies to Gradle, define authentication entry points, and apply filters to your controller endpoints.

Can I use Flyway for database migrations with Spring Boot and Spring Data JPA?

Flyway integrates with Spring Boot to automate database schema versioning and migrations. Spring Data JPA handles entity mapping to migrated tables. Configure Flyway locations in application properties, place SQL or Java migration files in src/main/resources/db/migration, and Spring Boot executes them on startup.

What does Google Java Style enforce and how does it work with Error Prone static analysis?

Google Java Style is a code formatting and naming standard for Java projects. Error Prone is a static analysis compiler plugin that detects common mistakes and style violations. Together in a Gradle build, they enforce consistent code quality, catch bugs at compile time, and ensure readability across Spring Boot projects.

How do I configure MapStruct annotation processing in a Gradle Spring Boot build?

MapStruct generates type-safe bean mappers at compile time using annotation processing. Add MapStruct and the annotation processor to Gradle dependencies, define mapper interfaces with @Mapper, and Gradle's annotation processing generates implementations to transform DTOs and entities in Spring services.