当前位置:网站首页>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">
边栏推荐
- Elk enterprise log analysis system
- 别不服气。手机功能升级就是强
- Recommendation number | what are interesting people looking at?
- Ueditor + PHP enables Alibaba cloud OSS upload
- 03_Solr之dataimport
- Source code analysis of etcd database -- peer RT of inter cluster network layer client
- TiFlash 面向编译器的自动向量化加速
- The IPO of Ruineng industry was terminated: the annual revenue was 447million and it was planned to raise 376million
- Routing in laravel framework
- Linked list (simple)
猜你喜欢

Postman简介、安装、入门使用方法详细攻略!

如何将 DevSecOps 引入企业?

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

Make the seckill Carnival more leisurely: the database behind the promotion (Part 2)
![UE源码阅读[1]---由问题入手UE中的延迟渲染](/img/fa/f33242b01e4da973fa36c2c6f23db6.png)
UE源码阅读[1]---由问题入手UE中的延迟渲染

让秒杀狂欢更从容:大促背后的数据库(下篇)

Can graduate students not learn English? As long as the score of postgraduate entrance examination English or CET-6 is high!

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

牛客网:拦截导弹

金融壹賬通香港上市:市值63億港元 葉望春稱守正篤實,久久為功
随机推荐
Interpretation of tiflash source code (IV) | design and implementation analysis of tiflash DDL module
Attack and defense world web WP
upload (1-6)
别不服气。手机功能升级就是强
04_solr7.3之solrJ7.3的使用
R语言使用nnet包的multinom函数构建无序多分类logistic回归模型、使用coef函数获取模型中每个变量(自变量改变一个单位)对应的对数优势比(log odds ratio)
物联网应用技术专业是属于什么类
[buuctf.reverse] 152-154
poi设置列的数据格式(有效)
In addition to the root directory, other routes of laravel + xampp are 404 solutions
国富氢能冲刺科创板:拟募资20亿 应收账款3.6亿超营收
Controller in laravel framework
laravel-dompdf导出pdf,中文乱码问题解决
2022年机修钳工(高级)考试题模拟考试题库模拟考试平台操作
Some ideas about Apache mesos
Routing in laravel framework
PHP character capture notes 2020-09-14
鏈錶(簡單)
[machine learning notes] how to solve over fitting and under fitting
荐号 | 有趣的人都在看什么?