AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Spring To Solon Skill

skill-opensolon-skills-spring-to-solon-skill · by opensolon

Expert guidance for migrating Java projects from Spring Boot / Spring Cloud to the Solon framework. Provides comprehensive annotation mapping, dependency replacement, architecture differences, and step-by-step migration strategies for each layer (IoC, Web, Data, Cloud, Testing).

No reviews yet
0 installs
12 views
0.0% view→install

Install

$ agentstack add skill-opensolon-skills-spring-to-solon-skill

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-opensolon-skills-spring-to-solon-skill)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Spring To Solon Skill? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Spring to Solon Migration Skill

Provide expert guidance for migrating Java projects from Spring Boot / Spring Cloud to the Solon framework. Solon is an independent Java enterprise framework (NOT based on Spring) that offers similar developer experience but with different annotations, architecture, and ecosystem.

Official comparison: https://solon.noear.org/article/compare-springboot Official cloud comparison: https://solon.noear.org/article/compare-springcloud Solon website: https://solon.noear.org Current version: 3.10.x

Critical Migration Rules

  1. Solon is NOT Spring. Never mix Spring annotations with Solon annotations. Replace ALL Spring imports.
  2. No Spring dependencies. Remove all spring-boot-starter-*, spring-* artifacts. Solon uses org.noear group ID.
  3. Configuration file is app.yml (or app.properties), NOT application.yml.
  4. Entry point is Solon.start(App.class, args), NOT SpringApplication.run().
  5. Parent POM is solon-parent with groupId=org.noear.
  6. Package scan uses @Import on main class, NOT @ComponentScan.
  7. No setter injection. Solon only supports field injection and constructor injection.
  8. All examples target Solon 3.10.x unless specified otherwise.
  9. 中文支持. When the user communicates in Chinese, all responses and code comments must be in Chinese.

Migration Scene Navigation

> 根据迁移场景,读取对应的 reference 文件获取详细信息。

快速对照

| Scenario | Reference File | Grep Keywords | |---|---|---| | 注解替换对照表 / 完整的 Spring→Solon 注解映射 | references/annotation_mapping.md | @Autowired, @Inject, @RequestMapping, @Mapping, @Service, @Component, @Value | | Maven 依赖替换 / starter → solon 插件 / POM 改造 | references/dependency_mapping.md | pom.xml, spring-boot-starter, solon-web, solon-lib, solon-parent |

IoC / AOP / 配置

| Scenario | Reference File | Grep Keywords | |---|---|---| | IoC 容器 / DI / 组件注册 / 作用域 / 生命周期 / AOP / 事件 / 包扫描 | references/ioc_aop_migration.md | @Inject, @Configuration, @Bean, LifecycleBean, @Init, @Destroy, @Aspect, EventBus | | 配置文件 / 属性注入 / 配置类 / Bean 定义 / 条件装配 | references/config_system_migration.md | app.yml, @Inject("${"), @Configuration, @Bean, @Condition, solon.config |

Web 层迁移

| Scenario | Reference File | Grep Keywords | |---|---|---| | Controller / 请求参数 / 返回值 / Context 上下文 | references/web_controller_migration.md | @Controller, @RestController, @Mapping, @Param, @Body, Context | | Filter / Interceptor / 全局异常 / CORS | references/web_filter_interceptor_migration.md | Filter, RouterInterceptor, @ControllerAdvice, GlobalExceptionFilter, @CrossOrigin | | 文件上传下载 / SSE / WebSocket / 参数校验 / 会话 | references/web_advanced_migration.md | UploadedFile, SseEmitter, WebSocket, @Valid, SessionState |

数据访问迁移

| Scenario | Reference File | Grep Keywords | |---|---|---| | 数据源 / MyBatis / MyBatis Plus / JPA / 多数据源 | references/datasource_orm_migration.md | @Db, SqlUtils, MyBatis, JPA, HikariDataSource, @Mapper | | 事务 / 缓存 / Redis / 陷阱清单 | references/transaction_cache_migration.md | @Transaction, @Cache, Redis, @CacheRemove, CacheService |

微服务迁移

| Scenario | Reference File | Grep Keywords | |---|---|---| | 注册发现 / 配置中心 / 陷阱清单 | references/cloud_discovery_config_migration.md | Nacos, Eureka, CloudClient, @CloudConfig, discovery, config | | RPC (Feign→Nami) / 网关 / 事件消息 | references/cloud_gateway_rpc_migration.md | Feign, NamiClient, CloudGateway, @CloudEvent, Gateway | | 断路器 / 任务调度 / 链路追踪 / 分布式锁/ID/文件/名单/监控/日志 | references/cloud_observability_migration.md | Breaker, @CloudJob, Trace, CloudLock, CloudId, CloudFile, Metric |

测试迁移

| Scenario | Reference File | Grep Keywords | |---|---|---| | 依赖 / 测试类 / HTTP 测试 / 配置 / Mock / 事务回滚 | references/test_basics_migration.md | @SpringBootTest, @SolonTest, HttpTester, Mock, @TestRollback | | 切面 / 条件 / 生命周期 / WebFlux / 数据层 / 完整示例 / 陷阱 | references/test_advanced_migration.md | @Rollback, WebFlux, @SolonTest, @EnableAutoConfiguration, assert |

Quick Migration Checklist

Step 1: POM 改造

  • Replace spring-boot-starter-parentsolon-parent
  • Replace Spring starters → Solon plugins
  • Add solon-maven-plugin
  • See: references/dependency_mapping.md

Step 2: 配置文件

  • Rename application.ymlapp.yml
  • Adjust configuration key names
  • See: references/config_system_migration.md

Step 3: 启动类

  • Replace @SpringBootApplication@SolonMain
  • Replace SpringApplication.run()Solon.start()
  • See: references/annotation_mapping.md

Step 4: 注解替换

  • Replace all Spring annotations with Solon equivalents
  • See: references/annotation_mapping.md

Step 5: Web 层改造

  • Replace @RestController@Controller
  • Replace @RequestMapping@Mapping
  • Handle HttpServletRequest/ResponseContext
  • See: references/web_controller_migration.md

Step 6: 数据层改造

  • Replace Spring transaction/cache annotations
  • See: references/datasource_orm_migration.md, references/transaction_cache_migration.md

Step 7: 微服务改造 (如适用)

  • Replace Spring Cloud components with Solon Cloud equivalents
  • See: references/cloud_discovery_config_migration.md

Step 8: 测试改造

  • Replace @SpringBootTest@SolonTest
  • See: references/test_basics_migration.md

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.