Spring JDBC 和事务控制

1.Spring 整合 JDBC环境

Spring框架除了提供 IOC与AOP核心功能外,同样提供了基于JDBC的数据访问功能,使得访问持久层数据更加方便。使用Spring JDBC环境,首先需要一套整合的Spring 整合JDBC的环境。

1.1 添加依赖坐标




  4.0.0

  com.xxx
  SpringJDBC
  1.0-SNAPSHOT

  SpringJDBC
  
  http://www.example.com

  
    UTF-8
    1.7
    1.7
  

  
    
      junit
      junit
      4.11
      test
    
    
    
    
      org.springframework
      spring-context
      5.3.16
    
    
    
      org.springframework
      spring-test
      5.2.4.RELEASE
    
    
    
      org.aspectj
      aspectjweaver
      1.9.8
    
    
    
      org.springframework
      spring-jdbc
      5.3.16
    
    
                    

你可能感兴趣的:(笔记,spring,java,后端)