请问SpringBootVFS是干嘛用的,今天偶然在配置多数据源是看到,希望有接触的朋友能讲解一下,谢谢了。
The VFS is used for searching classes (e.g. target class of type alias, type handler class) from an application (or application server). If you run a Spring Boot application using the executable jar, you need to use the SpringBootVFS. The auto-configuration feature provided by the MyBatis-Spring-Boot-Starter used it automatically, but it does not use automatically by a manual configuration (e.g. when uses multiple DataSource).
VFS 是 VirtualFileSystem(虚拟文件系统)的缩写,从名字上你也应该能猜出来是干啥的。
8 回答2.5k 阅读
2 回答5k 阅读✓ 已解决
5 回答798 阅读
4 回答1.1k 阅读✓ 已解决
4 回答1.1k 阅读✓ 已解决
3 回答2.1k 阅读
1 回答2.5k 阅读✓ 已解决
楼上+1
mybatis xml里面的一些配置内容为包的解析(像typeAliases,mappers啊),基本就是这靠这玩意去读取文件了,整合到spring以后,就是ResourcePatternResolver去做扫描了,这就是springbootvfs的作用了