全自动,企业级,springmvc,
2016-06-12 17:15
429 查看
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.framework.mapper.AfdcityMapper"> <sql id="selectId"> id, parent_id, name, level, seq </sql> <span style="white-space:pre"> </span><!-- 这里关注 <pre name="code" class="html">com.framework.entity.AfdcityFormMap,
findCityPage ,
<pre name="code" class="html">tc_afdcity
--><select id="findCityPage" resultType="com.framework.entity.AfdcityFormMap">select<include refid="selectId" />from tc_afdcitywhere 1=1</select></mapper>
真的全自动,很多类都没写,直接通过数据库的映射来获取类,所以,相关的方法也是,还有映射回去的实体类
还有关于mapper
afdcity-mapper.xml
afdcity-mapper.xml
afdcity必须为tc_afdcity数据库的后序字节,
以上全部是因为公司的框架是这么写的原因。
相关文章推荐
- Java 程序开机自启
- JDK1.8 十大新特性详解
- java值传递与引用传递
- springMVC 项目在jboss7中配置应用自己的log4j
- springboot 添加job定时任务
- java集合排序 Collections.sort
- spring MVC 注解方式的例子
- 深入探讨 java.lang.ref 包
- java基础—java获取图片的大小和尺寸(本地& 服务器)
- jsp+javaBean开发计算器案例
- Java语言设计文本查找器和文本编辑器
- java设计模式-单例模式
- Java读取/写入Yaml配置文件
- Java JDK1.8新特性Lambda 表达式
- eclipse插件大全
- SpringMvc登录检查
- 《深入理解Java虚拟机》Java内存区域与内存溢出异常
- spring boot使用mongo:code1
- 解决:使用java连接Fastdfs,上传文件时报:SocketTimeOutException的问题.
- Spring4 MVC json问题(406 Not Acceptable)