• SSM(一)——导包和命名空间


    1.Spring-IOC

    • spring-beans
    • spring-context
    • spring-core
    • spring-expression
    • commons-loging(日志包)

    2.Spring-AOP

    • com.springsoure.net.sf.cglib
    • com.springsoure.org.aopalliance
    • com.springsoure.org.aspectj.weaver
    • spring-aop
    • spring-aspects

    3.Spring-JDBC

    • spring-jdbc
    • spring-orm
    • spring-tx(事务管理的核心包)
    • druid(德鲁伊连接池,可以用别的)
    • mysql-connector-java(数据驱动和数据源)

    4.MyBatis

    • MyBatis-3.4.2.jar
    • log4j-1.2.17.jar(需要连同log4j.xml或者log4j.properties一起复制进项目,文件名不能改为别的,固定式log4j,内容不用管)
    • mysql-connector-java.5.1.8.jar

    5.Spring整合MyBatis

    • mybatis-spring

    6.SpringMVC-基础包

    • spring-web
    • spring-webmvc

    7.SpringMVC-JSON交互

    • jackson-annotation
    • jackson-core
    • jackson-databind

    8.SpringMVC-文件上传与下载

    • commons-fileupload
    • commons-io

    9.SpringMVC-JSON与AJAX交互需要引用的js文件

    • jquery-1.11.3.min.js

    1.xsi命名空间,最基础的配置bean的命名空间

    <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        
        xsi:schemaLocation="http://www.springframework.org/schema/beans 
         http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
        ">

    2.p命名空间,化简赋值写法

    xmlns:p="http://www.springframework.org/schema/p"

    3.util命名空间,在XML里配置集合的bean

    xmlns:util="http://www.springframework.org/schema/util"
    http://www.springframework.org/schema/util
    http://www.springframework.org/schema/util/spring-util.xsd

    4.context命名空间,扫描包,读取db.properties

    xmlns:context="http://www.springframework.org/schema/context"
    http://www.springframework.org/schema/context
    http://www.springframework.org/schema/context/spring-context-4.3.xsd

    5.aop命名空间,注解驱动

    xmlns:aop="http://www.springframework.org/schema/aop"
    http://www.springframework.org/schema/aop
    http://www.springframework.org/schema/aop/spring-aop-4.3.xsd

    6.tx命名空间,事务注解驱动

    xmlns:tx="http://www.springframework.org/schema/tx"
    http://www.springframework.org/schema/tx
    http://www.springframework.org/schema/tx/spring-tx-4.3.xsd

    7.mcv命名空间,静态资源请求、注解驱动、拦截器

    xmlns:mvc="http://www.springframework.org/schema/mvc"
    http://www.springframework.org/schema/mvc
    http://www.springframework.org/schema/mvc/spring-mvc-4.3.xsd
  • 相关阅读:
    spring声明式事务
    spring的传播行为和隔离级别
    索引(index)
    存储过程(转)
    Java中ArrayList相关的5道面试题
    记CVTE2014年春季招聘实习生求职历程
    Java中String,StringBuffer,StringBuilder的区别及其使用
    Linux下C程序的编译,运行,及调试
    skynet源码分析之skynet_server
    skynet源码分析之skynet_module
  • 原文地址:https://www.cnblogs.com/shoulinniao/p/13122293.html
Copyright © 2020-2023  润新知