${}取值报错An exception occurred processing

遇到一个奇葩的问题:

打印:${userMessage}:

${}取值报错An exception occurred processing


但是取值:

${userMessage.bType}
就报错了:

${}取值报错An exception occurred processing

${}取值报错An exception occurred processing


实体取值代码:

public String getBType() {

   return bType;
}

public void setBType(String bType) {
   this.bType = bType;
}

大了断点测了下确实没进这个方法,后来换成:

public String getbType() {
   return bType;
}

public void setbType(String bType) {
   this.bType = bType;}
成功取到值了。