org.springframework
spring-test
5.2.6.RELEASE
junit
junit
4.12
接口实现的mapper,测试与数据库交互
insert into test(content) values('测试内容')
引入logback日志
ch.qos.logback logback-classic1.2.3
设置日志输出格式
%d{HH:mm:ss} %-5level [%thread] %logger{30} - %msg%n UTF-8
设置声明式事务,保证数据的完整性
抬头写入
xmlns:tx="http://www.springframework.org/schema/tx"
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
下方配置
数据变化的方法中加入注解
@Transactional



