摘要: 一.spring的核心api Spring有如下的核心api 容纳Bean BeanFactory :这是一个工厂,用于生成任意bean。采取延迟加载,第一次getBean时才会初始化Bean。Bean工厂是最简单的容器,提供了基础的依赖注入支持。创建各种类型的Bean。 ApplicationCo 阅读全文
posted @ 2018-10-31 13:48 leagueandlegends 阅读(1166) 评论(0) 推荐(0)
摘要: 转载:https://www.cnblogs.com/originate918/p/6226342.html PROPAGATION_REQUIRED及其他6种事务传播行为种类。 Spring在TransactionDefinition接口中规定了7种类型的事务传播行为,它们规定了事务方法和事务方法 阅读全文
posted @ 2018-10-31 11:16 leagueandlegends 阅读(1383) 评论(0) 推荐(0)
摘要: Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elements. Your t 阅读全文
posted @ 2018-10-30 21:21 leagueandlegends 阅读(124) 评论(0) 推荐(0)
摘要: Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: s = "leetcode" return 0. 阅读全文
posted @ 2018-10-30 21:19 leagueandlegends 阅读(150) 评论(0) 推荐(0)
摘要: 一、Spring的依赖注入(DI) 在Spring框架下,当Bean实例A运行过程中需要引用另外一个Bean实例B时,Spring框架会创建Bean的实例B,并将实例B通过实例A的构造函数、set方法、自动装配和注解方式注入到实例A,这种注入实例Bean到另外一个实例Bean的过程叫做依赖注入。 依 阅读全文
posted @ 2018-10-30 19:48 leagueandlegends 阅读(284) 评论(0) 推荐(0)
摘要: 一、使用myeclipse创建spring框架 今天我们来写我们的第一个spring 第一步 建立一个java project 第二步 添加我们的五个jar文件 第三步 在项目中建立一个com.zk.spring包 第四步 建立我们的userservice接口和userserviceImpl.jav 阅读全文
posted @ 2018-10-30 18:58 leagueandlegends 阅读(2433) 评论(0) 推荐(0)
摘要: 学习过Spring框架的人一定都会听过Spring的IoC(控制反转) 、DI(依赖注入)这两个概念,对于初学Spring的人来说,总觉得IoC 、DI这两个概念是模糊不清的,是很难理解的,今天和大家分享网上的一些技术大牛们对Spring框架的IOC的理解以及谈谈我对Spring Ioc的理解。 一 阅读全文
posted @ 2018-10-30 17:25 leagueandlegends 阅读(206) 评论(0) 推荐(0)
摘要: struts2:web层hibernate:dao层spring:service层 一、spring框架概述 1.1 什么是springSpring是一个开源框架,Spring是于2003 年兴起的一个轻量级的Java 开发框架,由Rod Johnson 在其著作Expert One-On-One 阅读全文
posted @ 2018-10-30 17:23 leagueandlegends 阅读(159) 评论(0) 推荐(0)
摘要: 今天在某个教程上看到了jsp技术与Hibernate技术结合的一个小的例子,觉得很好,把它实现出来 按照Hibernate建工程的一贯做法, 首先 我们建立一个Hibernate工程,在工程下添加我们的com.student包,并在com.student包中添加student.java和studen 阅读全文
posted @ 2018-10-29 13:42 leagueandlegends 阅读(1084) 评论(0) 推荐(0)
摘要: 今天开启servlet学习 一.第一个Servlet程序 首先写我们的第一个servlet程序 第一步:新建我们的servlet程序(Web Project),命名为Servlet_001 第二步 :添加一个class,在src目录下创建一个ServletDemo 生成的web project 目录 阅读全文
posted @ 2018-10-28 10:58 leagueandlegends 阅读(341) 评论(0) 推荐(0)