<!-- 使用context命名空间在配置文件中开启相应的注解处理器--> <context:annotation-config /> <!-- 指定需要扫描的包,使注解生效--> <context:component-scan base-package="com.ssm.jdbc.daoImpl" />
Spring 开启注解需要在xml文件中配置什么
原文:https://www.cnblogs.com/pikatao/p/14354179.html