classpath和classpath*

Spring projects in the introduction of the configuration file, often encounter classpath: config.properties The wording classpath *: config.properties, and then classpath classpath * the role and the difference between what is it?

When will deploy next spring configuration files and directories under the src and compiled .class file into the WEB-INF / classes, find config.properties file and classpath classpath * will go to this directory

the difference:

Configuration files in classpath will only find this project class path

classpath introduction class will find the configuration file in the jar







Guess you like

Origin www.cnblogs.com/rookie111/p/11237174.html