basePath := "." + conf.Config.PhotoPath.AvatarPath + "user" + bId + "/"
时间: 2024-01-10 22:03:30 浏览: 136
basePath := "." + conf.Config.PhotoPath.AvatarPath + "user" + bId + "/" 这个表达式是在拼接一个文件路径。其中,"."表示当前目录,conf.Config.PhotoPath.AvatarPath表示配置文件中的头像路径,"user"表示用户相关的文件夹,bId表示用户的ID。所以,这个表达式的作用是生成一个用户头像的文件路径。
#### 引用[.reference_title]
- *1* [String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()作用](https://blog.csdn.net/pengzhisen123/article/details/80752937)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path](https://blog.csdn.net/csdt_csdt/article/details/9974637)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()](https://blog.csdn.net/ITBigGod/article/details/79393842)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文