Spring使用扫描注入
applicationContext.xml
package com.vo;import org.springframework.stereotype.Repository;import com.cache.Request;@Repositorypublic class LoginVo implements BaseVo {@Autowiredprivate SsUserInfoDAO ssUserInfoDAO;public Request excute(Request request) {request.setResponse("返回事件");return request;}}