spring之开启注解
2018-07-19 本文已影响0人
沈默的头号狗腿
要想在spring中使用注解,需要在配置文件中进行配置,如下
<context:annotation-config> --开启注解
<context:component -scan base-package="xxx.xxx"/> 扫描范围
要想在spring中使用注解,需要在配置文件中进行配置,如下
<context:annotation-config> --开启注解
<context:component -scan base-package="xxx.xxx"/> 扫描范围