---
title: "SpringJDBC BeanPropertyRowMapper 字段映射"
author: "kavinhub"
date: "2014-05-05T10:29:28Z"
tags: []
categories: ["企业架构"]
slug: "springjdbc-beanpropertyrowmapper"
draft: false
lastmod: "2014-05-05T10:29:28Z"
id: 2059968
url: "https://kavinhub.iteye.com/blog/2059968"
---

SpringJDBC BeanPropertyRowMapper 字段映射

 

SpringJDBC BeanPropertyRowMapper  查询的时候 一般的数据库字段都可以正常映射到 bean！

 

 

 

1. 字段名字一样

  字段          bean属性 

USER\_NAME --&gt; USER\_NAME

 

1. 或者驼峰式与下划线式对应

  字段          bean属性 

USER\_NAME --&gt; userName 

USER\_ID   --&gt; userId 

ORDER\_NUM2   --&gt; orderNum2