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

发布时间 2023-04-12 20:46:25作者: 拾月凄辰

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

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

yml配置文件:
image

WebMvcConfigurer配置类:
image