Skip to content

Commit 75fb45b

Browse files
committed
version to 1.3
1 parent c85c56f commit 75fb45b

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group 'nlpcn.org'
2-
version '1.2'
2+
version '1.3'
33

44
apply plugin: 'java'
55
apply plugin: 'war'
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
//package org.nlpcn.jcoder.run.java;
2+
//
3+
//import org.nlpcn.jcoder.run.annotation.Cache;
4+
//
5+
///**
6+
// * this is a api example
7+
// *
8+
// * @author ansj
9+
// *
10+
// */
11+
//@Single(false) // default is true
12+
//public class ApiExampleAction {
13+
//
14+
// @Inject
15+
// private Logger log ;
16+
//
17+
// @Inject
18+
// private Dao dao ;
19+
//
20+
// @Execute // publish this function to api !
21+
// // use url is
22+
// // http://host:port/[className]/methodName?field=value
23+
// // http//localhost:8080/ApiExampleAction/method?name=heloo&hello_word=hi
24+
// public Object function(HttpServletRequest req, HttpServerResponse rep, String name, @Param("hello_word") Integer helloWord) {
25+
// dosomething..
26+
// }
27+
//
28+
// @DefaultExecute // publish this function to api !
29+
// //http://localhost:8080/ApiExampleAction?user.name=aaa&user.passowrd=bbb
30+
// //http://localhost:8080/ApiExampleAction/function2?user.name=aaa&user.passowrd=bbb
31+
// //more about http://www.nutzam.com/core/mvc/http_adaptor.html
32+
//
33+
// @Cache(time=10,size=1000,block=false) // time SECONDS , block if false use asynchronous
34+
// public Object function2(@Param("..") User user) {
35+
//
36+
// dosomething..
37+
// }
38+
//
39+
//}

0 commit comments

Comments
 (0)