---
title: "ibatis 自动检查属性"
author: "roc08"
date: "2011-08-26T16:22:08Z"
tags: []
categories: ["编程语言"]
slug: "ibatis"
draft: false
lastmod: "2011-08-26T16:22:08Z"
id: 1158868
url: "https://roc08.iteye.com/blog/1158868"
---

几天前，在写一个update语句

 
```java
<update id="A" parameterClass="people">
		update A_TEMP set PNAME = #name# , POUTTYPE = #outtype#  where P_ID = #coId# and PCODE = #jpcode# 
</update> 
```


因错写了coId为comId 导致服务启动不起来。查了好久才发现，原来people中对应的字段名为coId 

原来ibatis在启动时会自动检查属是否正确 mark一下