Skip to content

Commit d98560d

Browse files
committed
Update the tinystruct framework version to be 1.7.25
1 parent cf6b11e commit d98560d

7 files changed

Lines changed: 18 additions & 15 deletions

File tree

en/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Add the dependency to your pom.xml:
2828
<dependency>
2929
<groupId>org.tinystruct</groupId>
3030
<artifactId>tinystruct</artifactId>
31-
<version>1.7.23</version>
31+
<version>1.7.25</version>
3232
<classifier>jar-with-dependencies</classifier>
3333
</dependency>
3434
```

en/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Add the tinystruct dependency to your project's `pom.xml` file:
2929
<dependency>
3030
<groupId>org.tinystruct</groupId>
3131
<artifactId>tinystruct</artifactId>
32-
<version>1.7.23</version>
32+
<version>1.7.25</version>
3333
<classifier>jar-with-dependencies</classifier>
3434
</dependency>
3535
```

en/web-applications.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The framework automatically routes requests to the appropriate method based on t
3838

3939
### HTTP Method-Specific Actions
4040

41-
New in version 1.7.23, you can specify which HTTP methods an action responds to using the `mode` parameter:
41+
New in version 1.7.25, you can specify which HTTP methods an action responds to using the `mode` parameter:
4242

4343
```java
4444
import org.tinystruct.system.annotation.Action.Mode;

index.html

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<meta name="keywords" content="java, framework, lightweight, command-line, web, applications, tinystruct">
1010
<meta name="author" content="James ZHOU">
1111
<link rel="icon" type="image/x-icon" href="favicon.ico">
12-
<title>tinystruct framework - v1.7.23</title>
12+
<title>tinystruct framework - v1.7.25</title>
1313

1414
<!-- Styles -->
1515
<link rel="stylesheet" href="assets/css/style.css">
@@ -82,7 +82,7 @@
8282
<button class="menu-toggle" onclick="toggleSidebar()">
8383
<ion-icon name="menu-outline"></ion-icon>
8484
</button>
85-
<div class="version-badge">v1.7.23</div>
85+
<div class="version-badge">v1.7.25</div>
8686
</div>
8787
<div class="header-actions">
8888
<button class="lang-switch" title="Switch Language" onclick="toggleLanguage()">
@@ -160,6 +160,7 @@ <h3>Simple & Elegant</h3>
160160
<pre><code class="language-java">package com.example;
161161

162162
import org.tinystruct.AbstractApplication;
163+
import org.tinystruct.data.component.Builder;
163164
import org.tinystruct.system.annotation.Action;
164165

165166
public class HelloApp extends AbstractApplication {
@@ -168,22 +169,24 @@ <h3>Simple & Elegant</h3>
168169
public String hello() {
169170
return "Hello, World!";
170171
}
171-
172+
172173
@Action("users")
173-
public User getUser(String id) {
174-
return userService.findById(id);
174+
public Builder getUser(String id) {
175+
// userService.findById(id);
176+
return new Builder();
175177
}
176178

177179
@Override
178180
public void init() {
179-
// TODO Auto-generated method stub
181+
this.setTemplateRequired(false);
180182
}
181183

182184
@Override
183185
public String version() {
184186
return "1.0";
185187
}
186-
}</code></pre>
188+
}
189+
</code></pre>
187190
</div>
188191
</div>
189192

@@ -438,7 +441,7 @@ <h4>Zero Configuration</h4>
438441
const commands = [
439442
"$ bin/dispatcher --version",
440443
" _/ ' _ _/ _ _ _/",
441-
" / / /) (/ _) / / (/ ( / 1.7.23",
444+
" / / /) (/ _) / / (/ ( / 1.7.25",
442445
" /",
443446
" ",
444447
"$ bin/dispatcher --help",
@@ -472,7 +475,7 @@ <h4>Zero Configuration</h4>
472475
"# bin/dispatcher start --import org.tinystruct.system.NettyHttpServer --server-port 777",
473476
" ",
474477
" _/ ' _ _/ _ _ _/",
475-
" / / /) (/ _) / / (/ ( / 1.7.23",
478+
" / / /) (/ _) / / (/ ( / 1.7.25",
476479
" /",
477480
" ",
478481
`${new Date().toLocaleString()} org.tinystruct.system.NettyHttpServer start`,

zh/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ tinystruct 是一个简单而强大的 Java 开发框架。它秉承简单思维
2929
<dependency>
3030
<groupId>org.tinystruct</groupId>
3131
<artifactId>tinystruct</artifactId>
32-
<version>1.7.23</version>
32+
<version>1.7.25</version>
3333
<classifier>jar-with-dependencies</classifier>
3434
</dependency>
3535
```

zh/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ https://github.com/tinystruct/tinystruct-archetype
2727
<dependency>
2828
<groupId>org.tinystruct</groupId>
2929
<artifactId>tinystruct</artifactId>
30-
<version>1.7.23</version>
30+
<version>1.7.25</version>
3131
<classifier>jar-with-dependencies</classifier>
3232
</dependency>
3333
```

zh/web-applications.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Tinystruct 使用智能的模式匹配系统进行路由:
3838

3939
### HTTP 特定方法操作
4040

41-
1.7.23 版本新增功能,您可以使用 `mode` 参数指定操作响应的 HTTP 方法:
41+
1.7.25 版本新增功能,您可以使用 `mode` 参数指定操作响应的 HTTP 方法:
4242

4343
```java
4444
import org.tinystruct.system.annotation.Action.Mode;

0 commit comments

Comments
 (0)