AI Agent Hub
Back to skills
Solon Java Development Guide icon

Solon Java Development Guide

Development Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_7e22112e/solon-development-skill according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem Solved

Many Solon projects fail or behave inconsistently because developers copy Spring annotations, dependencies, and configuration names. This skill targets Java 8 to Java 26 development on Solon 4.0.3 and keeps Solon separate from Spring: use app.yml, Solon.start(App.class, args), @Component, @Inject, and org.noear coordinates while avoiding @RestController, @Autowired, and spring-boot-starter-* habits.

How It Works

It first maps the task to a scenario, then reads only 1 or 2 relevant references instead of loading all materials. Core coverage includes:
- Foundations: pom.xml, solon-maven-plugin, AOT/Native, REST, filters, and scheduled jobs
- Data and communication: SqlUtils, transactions, MyBatis, Nami RPC, and Socket.D
- AI scenarios: ChatModel, tools, basic RAG, MCP, agents, HarnessEngine, and ACP/A2A
- Cloud and flow: configuration center, service discovery, gateway, breaker, Flow YAML, Workflow, and interceptors
Before generating code, it checks critical rules, such as avoiding Spring dependencies and consulting references or source code for uncertain APIs.

Boundaries

It fits native Solon development, plugin SPI, security validation, testing, logging, and AI component design; complete Spring migrations should use a Spring-to-Solon companion skill. Do not invent missing coordinates such as solon-ai-rag or solon-ai-a2a; when upgrading versions, replace the target version globally and re-review AI, Nami, and shortcut dependency changes.

Use Cases

  • Initialize a Solon Web project with Maven, App, Controller, and app.yml
  • Rewrite REST, filters, and jobs from Spring patterns to Solon app.yml setup
  • Wire Solon AI ChatModel, tools, MCP, or agents using the right references
  • Debug Nami RPC, service discovery, load balancing, and Socket.D communication

Best For

  • Java backend engineers converting Spring Boot services to Solon
  • Build owners maintaining org.noear dependencies and solon-parent
  • Application owners adding Solon AI agents, MCP, or RAG features
  • Java architects configuring gateway, breaker, discovery, and Flow