Spring配置

Spring配置

  1. 添加jar包maven中添加spring-context,spring-core,spring-beans,spring-context-support, spring-expression
  2. 创建配置文件applicationContext.xml

添加jar包,在pom.xml文件中注入依赖

maven远程仓库
https://mvnrepository.com/


        
            org.springframework
            spring-core
            5.0.8.RELEASE
        

        
            org.springframework
            spring-context
            5.0.8.RELEASE
        

        
        
            org.springframework
            spring-beans
            5.0.8.RELEASE
        

        
        
            org.springframework
            spring-context-support
            5.0.8.RELEASE
        
        
        
            org.springframework
            spring-expression
            5.0.8.RELEASE
        

创建配置文件applicationContext.xml




你可能感兴趣的:(三阶段.spring)