add: README也来个NB的demo

This commit is contained in:
Wendal Chen 2017-11-13 20:50:56 +08:00
parent eed71a390a
commit 81a16a1ee3

View File

@ -1,6 +1,31 @@
# nutzboot
简称NB
## 来个NB的demo
```java
package io.nutz.demo.simple;
import org.nutz.boot.NbApp;
import org.nutz.ioc.loader.annotation.*;
import org.nutz.mvc.annotation.*;
@IocBean
public class MainLauncher {
@Ok("raw")
@At("/time/now")
public long now() {
return System.currentTimeMillis();
}
public static void main(String[] args) throws Exception {
new NbApp(MainLauncher.class).run();
}
}
```
### 开发计划
- [ ] 基础框架