Spring
玄微
试错的成本是时间
展开
-
Spring的IOC和DI
3.Spring基于XML的IOC环境搭建和入门 核心配置文件 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance...原创 2019-10-10 08:18:12 · 94 阅读 · 0 评论 -
Spring常用注解
1.常用IOC注解按照作用分类 XML开发: <bean id="" class="" scope="" init-method="" destroy-method=""> <property name=""> <value></value> </property> ...原创 2019-10-10 16:34:10 · 89 阅读 · 0 评论 -
Spring新注解
如何去除Spring核心配置xml文件----使用配置类的形式(也就是"纯注解"开发) "完全使用纯注解开发,配置的效率并没有提高" "开发中根据实际情况,怎么方便怎么来" 1.Configuration和ComponentScan注解 Configuration 作用:指定当前类是一个配置类 ComponentScan 作用:指定Spring在创建容器的时候要扫描的包...原创 2019-10-11 16:15:11 · 142 阅读 · 0 评论