@Modules(scanPackage = true)
@IocBy(type = ComboIocProvider.class, args = {"*js",
"ioc/dao.js",
"*anno", "com",
"*tx"
})
@IocBean
public class HelloController {
@Inject
ServiceDao serviceDao;
@Inject
MySocket mySocket;
@Inject
WebSocket webSocket;
@At("/hello")
@Ok(">>:/index1.jsp")
public void hello() {
mySocket.sendJson(mySocket.session.getId(), serviceDao.findlist(1));
}
页面请求/hello
返回后 有数据 但页面是空白 ,
使用void的直接就是空白页,浏览器地址直接是请求的/hello