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 ">
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
162162import org.tinystruct.AbstractApplication;
163+ import org.tinystruct.data.component.Builder;
163164import org.tinystruct.system.annotation.Action;
164165
165166public 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` ,
0 commit comments