当前位置: 动力学知识库 > 问答 > 编程问答 >

Rest in Spring Web project

问题描述:

I am writing a web project in spring 3.1.0.

How can I link the interface and the class so that i inject Initialized interface to @Controller ?

Thanks

网友答案:

You'll have to use context:annotation-driven and @Autowired annotation for this . Check the documentation here.

分享给朋友:
您可能感兴趣的文章:
随机阅读: