09 2017 档案

摘要:applicationContext-mybatis.xml 配置文件(spring,mybatis集成的配置文件) jdbc.propertis配置文件 mybatis-config.xml配置文件(mybatis配置文件) junit测试类 第一种配置用的是 SqlSessionTemplate 阅读全文
posted @ 2017-09-30 16:18 m97i 阅读(156) 评论(0) 推荐(0) 编辑
摘要:xml配置文件: applicationContext-mybatis.xml配置文件(spring,mybatis集成的配置文件) DispatcherServlet-servlet.xml配置文件(spring) mybatis-config.xml 配置文件(mybatis) @Control 阅读全文
posted @ 2017-09-30 09:54 m97i 阅读(196) 评论(0) 推荐(0) 编辑
摘要:mybatis-config.xml 配置文件: 连接数据库的配置文件: jdbc.properties(这个文件要引入mybatis配置文件中) Mapper配置文件: UserMapper.xml(专门存储sql语句的配置文件)(这个文件要引入mybatis配置文件中) test类(junit) 阅读全文
posted @ 2017-09-26 22:19 m97i 阅读(165) 评论(0) 推荐(0) 编辑
摘要:C:\AppServ\MySQL> mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 解决方法: 编辑mysql配置 阅读全文
posted @ 2017-09-24 11:12 m97i 阅读(43439) 评论(0) 推荐(0) 编辑
摘要:JSP Model 1 jsp负责显示/逻辑控制JSP Model 2 jsp负责显示,servlet负责逻辑处理流程发送请求->委托请求给处理器->调用业务对象->返回数据模型->返回ModelAndView->渲染视图->返回控制->产生响应 可以用form标签<%@ taglib prefix 阅读全文
posted @ 2017-09-23 23:49 m97i 阅读(187) 评论(0) 推荐(0) 编辑
摘要:引用其他配置文件(applicationContext.xml)<import resource="classpath:applicationContext.dao.xml"/>或者在web.xml里统一设置 配置文件要命名规范 也可以写很多个param-value 引入每个文件 (<param-v 阅读全文
posted @ 2017-09-18 23:30 m97i 阅读(164) 评论(0) 推荐(0) 编辑
摘要:互相之间的引用通过接口来体现不new对象 通过容器获得对象spring两大核心 控制反转IOC/依赖注入DI面向切面AOP applicationContext.xml spring配置文件-><bean id="conDisk" class="dao.impl.ConDisk"> <propert 阅读全文
posted @ 2017-09-13 11:28 m97i 阅读(173) 评论(0) 推荐(0) 编辑
摘要:struts2 <!-- 开启使用开发模式,详细错误提示 --> <!-- <constant name="struts.devMode" value="true"/>--> <!-- 指定每次请求到达,重新加载资源文件 --> <!-- <constant name="struts.i18n.re 阅读全文
posted @ 2017-09-05 12:14 m97i 阅读(122) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示