About Java Project Source folder compiled path problem (class load path problem) __java

Source: Internet
Author: User

(If the picture in the article is not clear, you can right-click the –> in the new tab to see the big picture)

First, let's look at the engineering directory structure:

When we do mybatis, we read the sqlmapconfig.xml under another Sourcefolder config in one of the packages below SRC and read it directly like the files in this directory.
In fact, look at the project after compiling the directory structure at a glance:

You can see that there is a bin, then what is this, look at:

It's clear that all files and folders under All source folder (src Config test) are compiled into the bin (which is published to the/web-inf/classes side in the Javaweb environment). And this is the Java boot directory, so directly write the file name can be directly read

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.