servlet-context.xml
<context:component-scan base-package="com.java.*" />
<context:component-scan base-package="com.java.dto" >
<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Component"/>
</context:component-scan>
class MyBatisUserDao
@Repository(value="mUser")
public class MyBatisUserDao implements IUserDao {
class UserController
@Controller
@RequestMapping("/users")
public class UserController {
private static final Logger logger=LoggerFactory.getLogger(UserController.class);
@Resource(name="mUser")
private IUserDao userDao;
댓글 ( 4)
댓글 남기기