1---
2name: solon-development-skill
3description: "Specialized knowledge for developing Java applications with the Solon framework. Covers core concepts, web, data, security, remoting, AI, flow orchestration, cloud-native, testing, and more. Solon is an independent Java enterprise framework (NOT based on Spring) with its own annotation system, IoC/AOP container, and plugin ecosystem."
4metadata:
5 source: https://skillmd.com/skills/aibot88/solon-development-skill
6---
7
8# Solon Development Skill
9
10Provide expert guidance for building Java applications with the **Solon framework**. Solon is an independent, full-scenario Java enterprise application development framework — it is **NOT compatible with Spring** and has its own architecture, annotations, and ecosystem built from scratch.
11
12**Official website**: https://solon.noear.org
13**GitHub**: https://github.com/opensolon/solon
14**License**: Apache 2.0
15**JDK support**: Java 8 ~ 25, GraalVM Native Image
16**Current version**: 3.10.4
17
18## Critical Rules
19
201. **Solon is NOT Spring.** Never mix Spring annotations (`@Autowired`, `@SpringBootApplication`, `@RestController`, `@RequestMapping`, `@Service`, `@Repository`, `@Value`, `@ComponentScan`, etc.) into Solon code. Solon has its own complete annotation set.
212. **No Spring dependencies.** Never include `spring-boot-starter-*`, `spring-*`, or any Spring artifact in Solon projects. Solon uses `org.noear` group ID.
223. **Configuration file is `app.yml`** (or `app.properties`), NOT `application.yml`.
234. **Entry point** is `Solon.start(App.class, args)`, NOT `SpringApplication.run()`.
245. **All examples must target version 3.10.4** unless the user specifies otherwise.
256. **Parent POM** is `solon-parent` with `groupId=org.noear`.
267. **中文支持.** When the user communicates in Chinese, all responses and code comments must be in Chinese.
27
28## Scene Navigation
29
30> 根据用户场景,读取对应的 reference 文件获取详细信息。
31
32### 基础与核心
33
34| Scenario | Reference File | Grep Keywords |
35|---|---|---|
36| 项目初始化 / Maven 配置 / 构建 / 部署 / AOT / Native Image | `references/quick_start.md` | `pom.xml`, `Solon.start`, `solon-maven-plugin`, `solon-aot`, `native-image` |
37| 注解对照 / IoC 容器 / 配置系统 / 插件SPI / SnEL表达式 / Spring对比 | `references/core_concepts.md` | `@Inject`, `@Configuration`, `app.yml`, `SnEL`, `SpiLoader`, `Spring` |
38| 依赖选择 (web/lib) / 模块列表 / 序列化 / 视图 / 数据访问 / ORM | `references/modules_reference.md` | `solon-web`, `solon-lib`, `SqlUtils`, `MyBatis` |
39| 注解完整参考 / 配置文件属性参考 | `references/api_annotations.md` | `@Mapping`, `@Bean`, `@Param`, `server.port` |
40
41### Web 开发
42
43| Scenario | Reference File | Grep Keywords |
44|---|---|---|
45| REST API / MVC / WebSocket / EventBus / Filter / 拦截器 / 定时任务 | `references/common_patterns.md` | `@Controller`, `@Component`, `Filter`, `WebSocket`, `EventBus`, `@Mapping`, `@Scheduled` |
46| SSE 服务端推送 / Reactive 响应式 / I18n 国际化 | `references/web_advanced.md` | `SseEmitter`, `Flux`, `Mono`, `solon-web-sse`, `solon-web-rx`, `I18nUtil` |
47
48### 安全
49
50| Scenario | Reference File | Grep Keywords |
51|---|---|---|
52| 认证 / 鉴权 / CORS 跨域 / 角色权限 / 参数校验 / 配置加密 | `references/security.md` | `AuthAdapter`, `AuthProcessor`, `@CrossOrigin`, `@AuthPermissions`, `@AuthRoles`, `solon-security` |
53
54### 数据与通信
55
56| Scenario | Reference File | Grep Keywords |
57|---|---|---|
58| RPC 调用 / Nami 声明式客户端 / Socket.D 双向通信 / 负载均衡 | `references/remoting.md` | `@NamiClient`, `@Remoting`, `Socket.D`, `LoadBalance`, `ClientSession` |
59
60### 运维与可观测
61
62| Scenario | Reference File | Grep Keywords |
63|---|---|---|
64| 日志配置 / 自定义添加器 / 日志持久化 / Slf4j | `references/logging.md` | `solon-logging`, `AppenderBase`, `PersistentAppenderBase`, `logback` |
65
66### 测试
67
68| Scenario | Reference File | Grep Keywords |
69|---|---|---|
70| 单元测试 / 集成测试 / HTTP 接口测试 / Mock | `references/testing.md` | `@SolonTest`, `HttpTester`, `@Rollback`, `@Import`, `mockito` |
71
72### 云原生 / 微服务
73
74| Scenario | Reference File | Grep Keywords |
75|---|---|---|
76| 配置中心 / 注册发现 / 事件总线 / 分布式定时任务 / 文件存储 / 熔断 / 网关 / 链路追踪 / 分布式锁 | `references/cloud_native.md` | `nacos`, `kafka`, `minio`, `xxl-job`, `CloudClient`, `@CloudJob`, `@CloudEvent`, `CloudGateway` |
77
78### AI 开发
79
80| Scenario | Reference File | Grep Keywords |
81|---|---|---|
82| ChatModel / Tool Call / RAG / MCP / Agent / AI UI / Harness / ACP / A2A | `references/ai_development.md` | `ChatModel`, `RAG`, `MCP`, `ReActAgent`, `AiSdkStreamWrapper`, `HarnessEngine`, `ACP`, `A2A` |
83
84### 流程编排
85
86| Scenario | Reference File | Grep Keywords |
87|---|---|---|
88| Flow 流程编排 (规则引擎 / 工作流 / 状态机 / 图编排) | `references/flow_orchestration.md` | `FlowEngine`, `FlowContext`, `Graph`, `YAML`, `StateMachine` |