添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
重感情的葡萄酒  ·  sql ...·  11 月前    · 
爱旅游的伤疤  ·  kubectl patch ...·  2 年前    · 
欢快的花生  ·  JavaScript、jQuery、AJAX ...·  2 年前    · 
爱看球的毛豆  ·  pyqt5-QAbstractScrollA ...·  2 年前    · 
读研的盒饭  ·  PropertyInfo.SetValue ...·  2 年前    · 
public void addResourceHandlers(ResourceHandlerRegistry registry) { String os = System. getProperty ( "os.name" ); if (os.toLowerCase().startsWith( "win" )) { //如果是Windows系统 registry.addResourceHandler( "/smallapple/**" ) // /apple/**表示在磁盘apple目录下的所有资源会被解析为以下的路径 .addResourceLocations( "file:G:/itemsource/smallapple/" ) //媒体资源 .addResourceLocations( "classpath:/META-INF/resources/" ); //swagger2页面 } else { //linux 和mac registry.addResourceHandler( "/smallapple/**" ) .addResourceLocations( "file:/resources/smallapple/" ) //媒体资源 .addResourceLocations( "classpath:/META-INF/resources/" ); //swagger2页面;

数据库中路径