栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

SSM整合简述

SSM整合简述

1.ssm原始整合

各玩各的,可以配合,没有冲突

2.mybatis整合Spring

2.1导包




4.0.0

org.example
ssm
war
1.0-SNAPSHOT

A Camel Spring Route

    
        

        UTF-8
        UTF-8
        1.8
        1.8
        1.8
    





    
    
      org.springframework
      spring-webmvc
      5.3.8
    
    
      org.springframework
      spring-context
      5.3.8
    
    
      org.springframework
      spring-test
      5.3.8
    
    
      org.springframework
      spring-jdbc
      5.3.8
    
    
      org.springframework
      spring-tx
      5.3.8
    
    
        org.aspectj
        aspectjweaver
        1.9.7
    

    
    
      org.mybatis
      mybatis
      3.5.7
    
    
      org.mybatis
      mybatis-spring
      2.0.6
    
    
      mysql
      mysql-connector-java
      8.0.26
    
    
      com.alibaba
      druid
      1.2.6
    
    
        org.mybatis
        mybatis-spring
        2.0.6
    

    
    
      javax.servlet
      servlet-api
      2.5
        provided
    

    
      javax.servlet.jsp
      jsp-api
      2.2
        provided
    

    
      javax.servlet
      jstl
      1.2

    
    
      junit
      junit
      4.13.2
      test
    

    
        log4j
        log4j
        1.2.17
    


  


    
        
            org.opoo.maven
            tomcat9-maven-plugin
            3.0.0
            
                /
            
        
    
    multi
    
        
            
                maven-clean-plugin
                3.1.0
            
            
            
                maven-resources-plugin
                3.0.2
            
            
                maven-compiler-plugin
                3.8.0
            
            
                maven-surefire-plugin
                2.22.1
            
            
                maven-war-plugin
                3.2.2
            
            
                maven-install-plugin
                2.5.2
            

            
                maven-deploy-plugin
                2.8.2
            
        
    





2.2mybatis核心配置文件只写起别名




    
    
    
        
    

2.3spring核心配置文件为主





    
        
    
    
    
    
    
        
        
        
        
    
    
    
        
        
        
        


    
    
    
        
    
    
    
    
        
    

    
    
        
            
        
    

    
    
        
    

    
    


2.4mybatisMapper不变






    
        insert into account values (#{id},#{username},#{money})
    

    
        select * from account
    

2.5spring-mvc不变




    
    
    

    
        
        
    

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/707383.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号