Java.lang.IndexOutOfBoundException error, Universal Mapper plug-in String index out of range:0 error

Source: Internet
Author: User

Information:(1) Mybatis query result type character Exception

80353249

Array out of bounds, there are only a few possible: 1: You do not get the data, you use an array of an item, such as the first item
// Example: New Arraylist<string>(); List.get (1); // list is empty, the first item is empty
2: The data you get may be n, but the n+1 is used.

Universal Mapper Plug-in String index out of range:0 error
Private Character type; // here is the wrong place, you cannot use character as the field type of the database table map, because MyBatis is not judged on the length of the character property when it is converted to the character type. When the value is obtained, the Charat (0) is used directly, so the exception is reported as long as the result of the character type field is an empty string. 

Java.lang.IndexOutOfBoundException error, Universal Mapper plug-in String index out of range:0 error

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.