0
点赞
收藏
分享

微信扫一扫

springboot 中的 classpath 指的是什么路径?

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

springboot 中的 classpath 指的是什么路径?_项目打包

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

yml配置文件:

springboot 中的 classpath 指的是什么路径?_配置文件_02

WebMvcConfigurer配置类:

springboot 中的 classpath 指的是什么路径?_spring boot_03



举报

相关推荐

0 条评论