当前位置:网站首页>After the microservice project is deployed, static resources and files uploaded to upload cannot be accessed. Solution
After the microservice project is deployed, static resources and files uploaded to upload cannot be accessed. Solution
2022-07-05 14:08:00 【nightwind2017】
terms of settlement
When we go directly to the back end through the front end , You can set up listeners , Direct access to upload Documents in .
But when we deploy microservices , The backend is divided into client backend and server backend , The files we uploaded may be uploaded to the microservice, which is used by the server backend upload Folder , under these circumstances , We need to get through ip Address + Port number + Resource folder Mode of access
give an example , We uploaded photos to the wechat service upload In the folder , The front end should be accessed in the following format
<img src="http:xxx.xx.xx.xxx:xxxx/upload/xxxxx.jpg">
边栏推荐
- Matlab learning 2022.7.4
- How to divide a large 'tar' archive file into multiple files of a specific size
- 01 、Solr7.3.1 在Win10平台下使用jetty的部署及配置
- 如何将 DevSecOps 引入企业?
- OSI and tcp/ip protocol cluster
- Simple process of penetration test
- Liste des liens (simple)
- Liar report query collection network PHP source code
- Ueditor + PHP enables Alibaba cloud OSS upload
- Postman简介、安装、入门使用方法详细攻略!
猜你喜欢
Attack and defense world web WP
Embedded software architecture design - message interaction
如何将 DevSecOps 引入企业?
Anchor navigation demo
让秒杀狂欢更从容:大促背后的数据库(下篇)
Kunlun Taike rushes to the scientific innovation board: the annual revenue is 130million, and it plans to raise 500million. CETC Taiji holds 40% of the shares
锚点导航小demo
Set up a website with a sense of ceremony, and post it to the public 2/2 through the intranet
tidb-dm报警DM_sync_process_exists_with_error排查
Mingfeng medical sprint technology innovation board: annual revenue of 350million yuan, proposed to raise 624million yuan
随机推荐
R语言ggplot2可视化:使用ggplot2可视化散点图、使用labs参数自定义X轴的轴标签文本(customize X axis labels)
2022建筑焊工(建筑特殊工种)特种作业证考试题库及在线模拟考试
R语言dplyr包select函数、group_by函数、mutate函数、cumsum函数计算dataframe分组数据中指定数值变量的累加值、并生成累加数据列
2022年机修钳工(高级)考试题模拟考试题库模拟考试平台操作
Liste des liens (simple)
How to introduce devsecops into enterprises?
鏈錶(簡單)
Hide Chinese name
Laravel - view (new and output views)
Embedded software architecture design - message interaction
matlab学习2022.7.4
3W原则[通俗易懂]
SSH免密码登录详解
如何将 DevSecOps 引入企业?
How to divide a large 'tar' archive file into multiple files of a specific size
Requset + BS4 crawling shell listings
Network security - Novice introduction
TiFlash 面向编译器的自动向量化加速
锚点导航小demo
LeetCode_69(x 的平方根 )