随笔分类 -  Spring

Spring基础总结
摘要:package com.yt.project.stockpledge.schedule; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.ste... 阅读全文
posted @ 2018-02-26 08:39 lszan 阅读(218) 评论(0) 推荐(0)
摘要:ApplicationContext 的主要实现类: 1.ClassPathXmlApplicationContext:从 类路径下加载配置文件 2.FileSystemXmlApplicationContext: 从文件系统中加载配置文件 3.ConfigurableApplicationCont 阅读全文
posted @ 2017-06-29 10:16 lszan 阅读(276) 评论(0) 推荐(0)
摘要:一. Spring中常用的配置文件详解 二 . Spring中常用注解详解 使用注解来构造Ioc容器 用注解详Spring容器中注册Bean,需要在applationContext.xml中注册<context:component-scan base-package="cn"></context:c 阅读全文
posted @ 2017-06-26 10:57 lszan 阅读(1396) 评论(0) 推荐(0)
摘要:Spring学习笔记(1) 简单的实例 首先需要准备Spring包,可从官方网站上下载。 下载解压后,必须的两个包是spring.jar和commons-logging.jar。此外为了便于测试加入了JUnit包。 在Myeclipse中创建Java项目。 编写一个接口类,为了简单,只加入了一个方法 阅读全文
posted @ 2017-06-04 20:30 lszan 阅读(191) 评论(0) 推荐(0)