classpath 其本质其实是指项目打包后的classes下的路径,一般用来指代“src/main/resources”下的资源路径。

通常会在各种配置文件中使用【classpath】关键字,例如:
yml配置文件:

WebMvcConfigurer配置类:

springboot 中的 classpath 指的是什么路径?
阅读 77
2023-04-16
classpath 其本质其实是指项目打包后的classes下的路径,一般用来指代“src/main/resources”下的资源路径。

通常会在各种配置文件中使用【classpath】关键字,例如:
yml配置文件:

WebMvcConfigurer配置类:

相关推荐
精彩评论(0)