![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
顿悟中的白菜
不喜欢说话都在心里
展开
-
事务和链接数据源。
spring基于xml的声明式事务管理 1. <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"原创 2020-05-09 09:37:28 · 269 阅读 · 0 评论 -
spring中基于jdbcTemplate
spring中基于jdbcTemplate 1.基础操作jdbcTemplate public class JdbcTemplateDemo01 { public static void main(String[] args) { //准备数据源,spring中内置数据源 DriverManagerDataSource ds = new Driver...原创 2020-05-08 14:59:41 · 97 阅读 · 0 评论 -
spring整合junit
spring整合junit 使用Junit单元测试:测试我们的配置 1. Spring整合junit的配置 1. 导入spring整合junit的jar(坐标) 2. 使用Junit提供的一个注解把原有的main方法替换了,替换成spring提供的 @Runwith(SpringJUnit4ClassRuune.class...原创 2020-04-27 17:27:44 · 72 阅读 · 0 评论