
spring入门
TomorrowOkk
这个作者很懒,什么都没留下…
展开
-
spring---------Bean中各种属性的注入方式
一:Spring实例化bean的两种方式 调用无参构造方法 1:<bean id="personDao" class="cn.offcn.dao.impl.PersonDaoImpl"></bean> 2:<bean id="personDao" class="cn.offcn.dao.impl.PersonDaoImpl"> <property name="id" value="200"></property> ...原创 2020-10-19 20:37:36 · 271 阅读 · 0 评论 -
小白易上手----spring的入门案例
1:创建一个maven java工程 2:引入相关依赖 <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>4.3.0.RELEASE</versio原创 2020-10-17 17:12:08 · 83 阅读 · 0 评论