现在位置 >首页 > Spring
0℃
2013年03月14日 Web开发 ⁄ 被围观 5,915 views+
Title: how to use Spring to inject ur service layer into the servlet .   In a typical struts+spring framework, we know how to inject our “service” into the “action”. But sometime we have to use the “servlet”. I mean the real servlet, not the struts’s action-servlet! For example: We have a servlet name is “UserServlet”, we want to inject the service “MyTaskService” into it as following sample shows: public class userServlet extends HttpServlet { @Resource MyTaskServic...
阅读全文

无觅相关文章插件,快速提升流量