- 博客(8)
- 收藏
- 关注
转载 Index logic in MySQL& B- tree algorithm
This blog is about some basic ideas about index logic in the Database engine in MySQL, along with the simple explanation of its supporting algorithm: B- tress algorithm. B-tree Algorithm Index logic **
2015-06-05 09:58:26 421
转载 JS 正则校验
使用reg函数对输入的字符串进行正则校验 <div class="row"> <form id="queryForm" name="queryForm" class="form-inline" method="post" style="margin-bottom: 10px;" > <div class="col-sm-4"> <inpu
2015-05-28 15:23:12 431
原创 Spring项目的一些常见问题
404错误: 找不到页面,检查路径是否正确 form 表单传输的参数一定要全部写进表单内。 如果不想显示在页面,使用hidden属性。 <form id="updateForm" name="updateForm" class="form-inline" method="post" style="margin-bottom: 10px;"> <input type="hidden" cla
2015-05-19 19:47:14 352
原创 单元测试 TEST
写controller和页面之前, 先配好数据库和service。 2.因此做单元测试, 即先测试数据库和service的连接情况。3.在java/src/test 建一个impl 测试文件4.代码如下 ` package com.suning.mims.impl.warehouse; import java.util.HashMap; import java.util.Map; import or
2015-05-19 19:26:05 331
原创 Ibatis对数据查询的一些技巧(一)
做映射操作时,对于没有数值的关键字,取-1 ,防止查询到其他信息。 <#if teacherNo?exists && teacherNo!=''> TEACHER_NO = :teacherNo <#else> TEACHER_NO = '-1' </#if> 每个老师只能查看自己学生的信息,为了防止教师编号字段为空时,教师查到别的学生的信息, 设 -1 可以用 <#if>
2015-05-19 15:55:56 392
转载 spring mvc 的设计模式
使用spring,在web.xml中配置一个DispatcherServlet。 <!--配置 spring 的DispatcherServlet--> <servlet> <servlet-name>SpringMVC</servlet-name> <servlet-class>org.springframework.web.servlet.Dispatche
2015-05-14 11:09:22 1821
原创 spring 框架
spring 是基于bean的框架 context组件式为spring提供运行环境,等级结构ApplicationContext继承了BeanFactory,用于保存bean对象及对象关系表,并捕获各种事件。是Spring的IOC容器。 core组件完成资源的管理。 其中context组件把资源的加载和描述交给core组件的ResoursePatternResolver来完成。 普通的bean 直接
2015-05-13 17:24:18 285
原创 [spring] Tomcat 中WEB文件的初始化操作
首先查找globalWebXml ,在路径下conf /web.xml。 接着找应用的配置文件 example/ WEB-INF/web.xml 。文件中的各个配置项会被解析成相应属性保存在 WwbXml对象中。 实际是将Servlet包装为Context 容器中的StandardWrapper for (ServletDef servlet : servlet.values() ) {
2015-05-13 15:41:13 303
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人