当前位置:网站首页>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">
边栏推荐
- Sorter evolution of ticdc 6.0 principle
- SAS接口有什么优势特点
- 展现强大。这样手机就不会难前进
- Sqllab 1-6 exercise
- Embedded software architecture design - message interaction
- Linked list (simple)
- Controller in laravel framework
- -Web direction attack and defense world
- Zhizhen new energy rushes to the scientific innovation board: the annual revenue is 220million, and SAIC venture capital is the shareholder
- Laravel - view (new and output views)
猜你喜欢

魅族新任董事長沈子瑜:創始人黃章先生將作為魅族科技產品戰略顧問

神经网络物联网未来现状和趋势及看法

laravel-dompdf导出pdf,中文乱码问题解决

荐号 | 有趣的人都在看什么?

Elfk deployment

治臻新能源冲刺科创板:年营收2.2亿 上汽创投是股东

Brief introduction to revolutionary neural networks

Attack and defense world crypto WP

OSI and tcp/ip protocol cluster

Liar report query collection network PHP source code
随机推荐
mysql 自定义函数 身份证号转年龄(支持15/18位身份证)
[South China University of technology] information sharing of postgraduate entrance examination and re examination
Interpretation of tiflash source code (IV) | design and implementation analysis of tiflash DDL module
Zibll theme external chain redirection go page beautification tutorial
我为什么支持 BAT 拆掉「AI 研究院」
TDengine 社区问题双周精选 | 第三期
关于memset赋值的探讨
Zhizhen new energy rushes to the scientific innovation board: the annual revenue is 220million, and SAIC venture capital is the shareholder
基于伯努利原理的速度监测芯片可用于天然气管道泄露检测
R语言dplyr包select函数、group_by函数、mutate函数、cumsum函数计算dataframe分组数据中指定数值变量的累加值、并生成累加数据列
故障分析 | MySQL 耗尽主机内存一例分析
PHP basic syntax
TiFlash 源码解读(四) | TiFlash DDL 模块设计及实现分析
[js] basic syntax - for loop
Brief introduction to revolutionary neural networks
What is information security? What is included? What is the difference with network security?
Those things I didn't know until I took the postgraduate entrance examination
荐号 | 有趣的人都在看什么?
Make the seckill Carnival more leisurely: the database behind the promotion (Part 2)
Linked list (simple)