摘要: 1、环境搭建 1)jar包拷贝 这里对比xml的配置方式,jar包多了一个aop的jar包 2)使用@Component注解配置管理的资源 注意:当使用注解方式进行属性注入的时候set方法不用写 3)创建spring的配置文件,开启对注解的支持 <?xml version="1.0" encodin 阅读全文
posted @ 2022-03-19 18:28 CGGirl 阅读(35) 评论(0) 推荐(0)
摘要: 1、需求 实现账户的 CRUD 操作 2、技术选取 使用 spring 的 IoC 实现对象的管理 使用 DBAssit 作为持久层解决方案 使用 c3p0 数据源 3、环境jar包 4、数据库创建和实体类编写 create table account( id int primary key aut 阅读全文
posted @ 2022-03-19 17:21 CGGirl 阅读(45) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-03-19 17:06 CGGirl 阅读(33) 评论(0) 推荐(0)
摘要: 案例介绍准备: 1、使用案例: 解决账户的业务层和持久层的依赖关系 2、Spring的开发包 官网:http://spring.io/ 下载地址:http://repo.springsource.org/libs-release-local/org/springframework/spring 解压 阅读全文
posted @ 2022-03-19 17:05 CGGirl 阅读(47) 评论(0) 推荐(0)