Entity class inside the name and capitalization of the attribute is to be standardized, this problem tangled me for a long time

Source: Internet
Author: User

Yesterday I wrote a method, is to show the background data (price) in the page,

I made a mistake of the lowest level, I named it this way: private String Show_money; Then gives the Get Set method,


Then I set the value in the Java code, but I take the value in the page:

<td><span id= "Cusbalance" >${companyInfoEntity.Show_Money}</span></td>

The results can not be taken, there is no error everywhere.


Today I know that I am naming the private String Show_money; The time is not standard (capitalization problem), resulting in Set,get method problems, the page can not get the value. Then leads to a series of questions later. I have been tangled up for a long while.

I finally realized it today. The details are really important.

Entity class inside the name and capitalization of the attribute is to be standardized, this problem tangled me for a long time

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.