摘要: spring framework Ioc容器 spring mvc web项目 mybatis orm持久层框架 ssm 整合 1、maven web项目 src main java 类源码路径 resources 资源配置文件 webapp img css js WEB-INF web.xml w 阅读全文
posted @ 2017-07-18 16:36 归然 阅读(244) 评论(0) 推荐(0) 编辑
摘要: springframework 4.3.9 mybatis 3.4.4 框架整合 1、数据库准备 数据库信息 db root root 3306 localhost mysql> select * from book; + + + + | book_id | book_name | book_pri 阅读全文
posted @ 2017-07-18 16:35 归然 阅读(128) 评论(0) 推荐(0) 编辑
摘要: assm spring framework Ioc容器 spring mvc web项目 mybatis orm持久层框架 ssm 整合 1、建立maven web项目 pom.xml 内容如下: <project xmlns="http://maven.apache.org/POM/4.0.0" 阅读全文
posted @ 2017-07-18 16:35 归然 阅读(143) 评论(0) 推荐(0) 编辑
摘要: UserDAO save Log.info('数据保存'); public void save(){ //数据保存 Log log = new Log(); log.info(); } open Log.info('数据库连接打开'); close read write insert 操作 MyUs 阅读全文
posted @ 2017-07-18 16:34 归然 阅读(245) 评论(0) 推荐(0) 编辑
摘要: spring容器测试方法一 import com.fz.dao.UserDao; import com.fz.entity.Book; import com.fz.entity.User; import org.junit.Before; import org.junit.Test; import 阅读全文
posted @ 2017-07-18 16:34 归然 阅读(107) 评论(0) 推荐(0) 编辑
摘要: <bean id="users" class="com.fz.entity.User" init-method="abc" destroy-method="destory" scope="singleton"></bean> spring容器使用注解 beans.xml 文件加入关联 <?xml v 阅读全文
posted @ 2017-07-18 16:33 归然 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 注解功能 1)配置spring容器 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/ 阅读全文
posted @ 2017-07-18 16:33 归然 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 什么是IoC? 控制反转 控制反转(Inversion of Control,英文缩写为IoC)是框架的重要特征,并非面向对象编程的专用术语。 它与依赖注入(Dependency Injection,简称DI)和依赖查找(Dependency Lookup)并没有关系。 DI 依赖注入 构造方法注入 阅读全文
posted @ 2017-07-18 16:32 归然 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 官方网站 http://projects.spring.io/spring-framework/ http://projects.spring.io/spring-framework/ http://docs.spring.io/spring-framework/docs/current/sprin 阅读全文
posted @ 2017-07-18 16:32 归然 阅读(121) 评论(0) 推荐(0) 编辑
摘要: springmvc 4.3.9 + Mybatis 整合 Spring容器 就是SpringFramework 框架 工厂框架 IoCAOP ssm springframework struts hibernate 1、mysql数据库准备 root root db localhost 3306 u 阅读全文
posted @ 2017-07-18 15:50 归然 阅读(118) 评论(0) 推荐(0) 编辑