摘要:
第一:使用注解开发必须导入AOP的包加载依赖了。spring-webmvc 第二:在使用注解需要导入context约束,增加注解的支持 在beans.xml文件中 第三:@component //@component 组件,相当于在配置文件中bean的动作 第四:@属性注入:在setf方法上增加语句 阅读全文
posted @ 2023-03-16 19:26
Rui2022
阅读(20)
评论(0)
推荐(0)
摘要:
1、配置XML 注解支持: <context:annotation-config/> <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi 阅读全文
posted @ 2023-03-16 07:58
Rui2022
阅读(22)
评论(0)
推荐(0)
浙公网安备 33010602011771号