With this error, I alert myself---java.lang.ClassNotFoundException:

Source: Internet
Author: User

Today we are doing a small example, using interface-oriented programming, using a factory to obtain data sources and instances, when reading instances from the configuration file, reported an error such as:

So one of the class to find the wrong, and finally did not find, thought the factory code error, saw several times did not see the error.

It took about 10 minutes, his uncle's, configuration file error, wrong configuration file

Corrected configuration file:

And then I thought, it's going to be fine.

But

So I checked the config file again, and sure enough TMD

After correction:

What the fuck, so 20 minutes went in.

White wasted dad more than 20 minutes time, write code to be cautious ah, lesson AH

With this error, I alert myself---java.lang.ClassNotFoundException:

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.