开发者

getting value from one controller to another controller

How can I get value from one controller to another controller u开发者_如何学运维sing Spring framework


Inject the needed controller into the one that needs it (using @Resource, @Autowired, @Inject (spring 3), or applicationContext.xml). Like:

@Controller
public class SomeController {
    @Autowired
    private NeededController neededController;

    ...
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜