随笔分类 - 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...
阅读全文
摘要:ApplicationContext 的主要实现类: 1.ClassPathXmlApplicationContext:从 类路径下加载配置文件 2.FileSystemXmlApplicationContext: 从文件系统中加载配置文件 3.ConfigurableApplicationCont
阅读全文
摘要:一. Spring中常用的配置文件详解 二 . Spring中常用注解详解 使用注解来构造Ioc容器 用注解详Spring容器中注册Bean,需要在applationContext.xml中注册<context:component-scan base-package="cn"></context:c
阅读全文
摘要:Spring学习笔记(1) 简单的实例 首先需要准备Spring包,可从官方网站上下载。 下载解压后,必须的两个包是spring.jar和commons-logging.jar。此外为了便于测试加入了JUnit包。 在Myeclipse中创建Java项目。 编写一个接口类,为了简单,只加入了一个方法
阅读全文

浙公网安备 33010602011771号