Skip to content

Commit eb9dc94

Browse files
committed
release
1 parent cd7eb3a commit eb9dc94

23 files changed

Lines changed: 200 additions & 140 deletions

UPDATE_LOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
### v2026.6.17
44

55
* 修复 soloncode 安装时,会清掉 `~/.soloncode/skills/` 技能的问题
6+
*
67

78
### v2026.6.16
89

soloncode-cli/release/skills/solon-development-skill/SKILL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ Provide expert guidance for building Java applications with the **Solon framewor
1010
**Official website**: https://solon.noear.org
1111
**GitHub**: https://github.com/opensolon/solon
1212
**License**: Apache 2.0
13-
**JDK support**: Java 8 ~ 25, GraalVM Native Image
14-
**Current version**: 3.10.4
13+
**JDK support**: Java 8 ~ 26, GraalVM Native Image
14+
**Current version**: 4.0.2
1515

1616
## Critical Rules
1717

1818
1. **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.
1919
2. **No Spring dependencies.** Never include `spring-boot-starter-*`, `spring-*`, or any Spring artifact in Solon projects. Solon uses `org.noear` group ID.
2020
3. **Configuration file is `app.yml`** (or `app.properties`), NOT `application.yml`.
2121
4. **Entry point** is `Solon.start(App.class, args)`, NOT `SpringApplication.run()`.
22-
5. **All examples must target version 3.10.4** unless the user specifies otherwise.
22+
5. **All examples must target version 4.0.2** unless the user specifies otherwise.
2323
6. **Parent POM** is `solon-parent` with `groupId=org.noear`.
2424
7. **中文支持.** When the user communicates in Chinese, all responses and code comments must be in Chinese.
2525

soloncode-cli/release/skills/solon-development-skill/references/ai_development.md

Lines changed: 168 additions & 109 deletions
Large diffs are not rendered by default.

soloncode-cli/release/skills/solon-development-skill/references/api_annotations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# API & Annotations Reference — 注解与配置参考
22

33
> 适用场景:查找具体注解用法、配置文件属性、WebSocket/EventBus/Filter API。
4-
> 目标版本:3.10.4
4+
> 目标版本:4.0.2
55
66
## 1. Core Annotations
77

soloncode-cli/release/skills/solon-development-skill/references/core_concepts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> 适用场景:理解 Solon 的 IoC 容器、配置系统、插件机制、表达式语言,以及与 Spring 的区别。
44
>
5-
> 基于官方文档整理,目标版本 3.10.4
5+
> 基于官方文档整理,目标版本 4.0.2
66
77
## Annotations Mapping (Solon vs Spring equivalents)
88

soloncode-cli/release/skills/solon-development-skill/references/modules_reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> 适用场景:选择服务器实现、序列化方式、视图引擎、数据访问、ORM 集成。
44
>
5-
> Solon 官方坐标 groupId 为 `org.noear`,版本号 `3.10.4`。部分第三方适配插件的 groupId 不同,见各表标注。
5+
> Solon 官方坐标 groupId 为 `org.noear`,版本号 `4.0.2`。部分第三方适配插件的 groupId 不同,见各表标注。
66
77
## Shortcut Dependencies(快捷组合包)
88

@@ -135,7 +135,7 @@ public class OrderService {
135135
@Inject
136136
private UserService userService;
137137

138-
@Tran // 声明式事务(传播机制默认 REQUIRED)
138+
@Transaction // 声明式事务(传播机制默认 REQUIRED)
139139
public void createOrder(Order order) {
140140
userService.updateUser(order.getUser());
141141
// ... 其他业务操作

soloncode-cli/release/skills/solon-development-skill/references/quick_start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<groupId>org.noear</groupId>
1616
<artifactId>solon-parent</artifactId>
17-
<version>3.10.4</version>
17+
<version>4.0.2</version>
1818
</parent>
1919

2020
<groupId>com.example</groupId>

soloncode-cli/release/skills/solon-development-skill/references/web_advanced.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ Dependency: `solon-net-httputils`
179179
public class DemoController {
180180
@Mapping("/hello")
181181
public Flux<String> hello() throws Exception {
182-
return HttpUtils.http("https://solon.noear.org/").execAsTextStream("GET");
182+
return HttpUtils.http("https://solon.noear.org/").execAsLineStream("GET");
183183
}
184184
}
185185
```

soloncode-cli/release/skills/spring-to-solon-skill/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Provide expert guidance for migrating Java projects from **Spring Boot** / **Spr
1010
**Official comparison**: https://solon.noear.org/article/compare-springboot
1111
**Official cloud comparison**: https://solon.noear.org/article/compare-springcloud
1212
**Solon website**: https://solon.noear.org
13-
**Current version**: 3.10.x
13+
**Current version**: 4.0.2
1414

1515
## Critical Migration Rules
1616

@@ -21,7 +21,7 @@ Provide expert guidance for migrating Java projects from **Spring Boot** / **Spr
2121
5. **Parent POM** is `solon-parent` with `groupId=org.noear`.
2222
6. **Package scan** uses `@Import` on main class, NOT `@ComponentScan`.
2323
7. **No setter injection.** Solon only supports field injection and constructor injection.
24-
8. **All examples target Solon 3.10.x** unless specified otherwise.
24+
8. **All examples target Solon 4.0.x** unless specified otherwise.
2525
9. **中文支持.** When the user communicates in Chinese, all responses and code comments must be in Chinese.
2626

2727
## Migration Scene Navigation

soloncode-cli/release/skills/spring-to-solon-skill/references/annotation_mapping.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Spring → Solon 注解对照表
22

3-
> 基于 Solon 3.10.x / Spring Boot 2.7 / 3.x | 官方来源: https://solon.noear.org/article/compare-springboot
3+
> 基于 Solon 4.0.x / Spring Boot 2.7 / 3.x | 官方来源: https://solon.noear.org/article/compare-springboot
44
55
---
66

@@ -861,7 +861,7 @@ public class App {
861861

862862
## 十三、完整注解速查表
863863

864-
| 分类 | Spring Boot | Solon 3.10.x | 简要说明 |
864+
| 分类 | Spring Boot | Solon 4.0.x | 简要说明 |
865865
|---|---|---|---|
866866
| **DI** | `@Autowired` | `@Inject` | 按类型注入 |
867867
| **DI** | `@Qualifier`+`@Autowired` | `@Inject("name")` | 按名称注入 |

0 commit comments

Comments
 (0)