public class SpringHelloWorld extends com.itmill.toolkit.Application {
public void init() {
final Window main = new Window("Hello window");
setMainWindow(main);
SpringContextHelper helper = new SpringContextHelper(this);
MyBeanInterface bean = (MyBeanInterface)
helper.getBean("myBean");
main.addComponent(new Label( bean.myMethod() ));
}
}
http://qastegiano.blogspot.com/2008/01/itmill-toolkit-5-spring.html
它是一个自定义类还是我们应该在那里定义一些东西。
最佳答案
你必须定义一些东西。这是一个如何从 bean 工厂取出 bean 的例子;替换您自己的有用的类。
关于java - 这里的beanInterface指的是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4572613/