Spring to Solon Migration Skill for Openclaw

A comprehensive expert guide for migrating Java applications from Spring Boot and Spring Cloud to the lightweight Solon framework.

noear
v1.0.0
Apr 15, 2026
0
696
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install spring-to-solon-skill

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install spring-to-solon-skill using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Spring to Solon Migration Skill?

This skill provides a structured pathway for developers transitioning from the Spring ecosystem to the Solon framework (version 3.10.x). It focuses on the architectural shift required to move away from Spring-based dependencies toward the independent, high-performance Solon environment. By leveraging this resource within Openclaw Skills, developers can accurately translate complex IoC, Web, and Data layers without the common pitfalls of mixing incompatible frameworks.

Solon offers a similar developer experience to Spring but with significantly reduced overhead and a different annotation set. This migration skill ensures that every aspect of the application—from the main entry point to microservice cloud configurations—is correctly re-implemented using the org.noear ecosystem.

Spring to Solon Migration Skill Use Cases

  • Replacing Spring Boot starters with Solon plugins to reduce application footprint.
  • Porting Spring Cloud microservices to Solon Cloud for improved resource efficiency.
  • Converting Spring MVC controllers and annotations to the Solon Web context.
  • Reconfiguring existing Maven POM structures from Spring parent to Solon parent.

How Spring to Solon Migration Skill Works

  1. Analyze the existing project to identify all spring-boot-starter dependencies and Spring annotations.
  2. Execute a dependency overhaul by replacing the Spring parent POM with the Solon parent (org.noear).
  3. Reformat application configuration by migrating application.yml settings to the Solon-specific app.yml format.
  4. Refactor the application entry point from SpringApplication.run to Solon.start with the @SolonMain annotation.
  5. Systematic replacement of field and constructor injections, ensuring no setter injection is used as per Solon requirements.
  6. Update testing suites to utilize SolonTest environments for integration and unit testing.

Spring to Solon Migration Skill Setup

To begin the migration using Openclaw Skills, you must first update your project's build file and directory structure:

# 1. Rename your configuration file
mv src/main/resources/application.yml src/main/resources/app.yml

# 2. Update your Main class to use Solon
# Replace @SpringBootApplication with @SolonMain
# Replace SpringApplication.run(App.class, args) with Solon.start(App.class, args)

Ensure your pom.xml reflects the solon-parent and removes all spring-boot-starter-* artifacts.

Spring to Solon Migration Skill Data Schema & Taxonomy

The skill organizes migration data through a set of specialized reference mappings:

Migration Layer Key Components Target Documentation
Dependency Maven Artifacts, Starters dependency_mapping.md
Logic/IoC @Inject, @Bean, Scopes ioc_aop_migration.md
Web @Mapping, Context, @Controller web_controller_migration.md
Persistence @Db, @Transaction, MyBatis datasource_orm_migration.md
Microservices Nami, CloudClient, Nacos cloud_discovery_config_migration.md

Spring to Solon Migration Skill Advanced Features

  • Mapping for advanced RPC transitions from Spring Cloud Feign to NamiClient.
  • Full support for Solon Cloud observability features including breakers, tracing, and distributed locks.
  • Transition strategies for WebFlux-style reactive programming to Solon's efficient web handling.
  • Complete support for localized development workflows with response capabilities in both English and Chinese.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*