Spring基础教程之环境的配置

学习spring需要的基础:
1、javase
2、javaee(会使用jsp+servlet+mvc开发一个网站)


开始吧

Spring 起源于 2003年 由Rod johnon所作 前身是.interface21
一、Spring两大特性:
1、IOC:控制反转 (DI:依赖注入)
2、AOP
二、Spring运行环境的搭建
1、下载好所需要的jar包(至少需要6个jar包)

	spring-aop.jar                 开发AOP特性时需要的jar
	spring-beans.jar               处理Bean的jar
	spring-context.jar             处理spring上下文的jar
	spring-core.jar                spring核心jar
	spring-expression.jar          spring表达式
	以及第三方提供的jar:
	 common-logging.jar

2、编写配置文件

方式一:为了编写时有一些提示,自动生成一些配置信息,可以给eclipse安装插件:
spring-tools-suite(下载地址:https://repo.spring.io/release/org/springframework/spring/)
然后安装:     
点击:help  -> install other software
方式二:直接下载STS工具,这个工具就是一个打包好了sts的eclipse开发ide  , 下载地址:https://spring.io/tools3/sts/
	新建bean文件:
	命名为:appcationXml.xml
	新建完成后里面会有一些代码:
	
	<?xml version="1.0" encoding="UTF-8"?>
	<beans x

猜你喜欢

转载自blog.csdn.net/Mr_C_python/article/details/98107720
今日推荐