当前位置:网站首页>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">
边栏推荐
- Tidb DM alarm DM_ sync_ process_ exists_ with_ Error troubleshooting
- [js] basic syntax - for loop
- 链表(简单)
- LeetCode_69(x 的平方根 )
- Rk3566 add LED
- upload (1-6)
- C - Divisors of the Divisors of An Integer Gym - 102040C
- Request + BS4 crawl Netease cloud music popular comments
- Login interface code
- Network security - Novice introduction
猜你喜欢
为什么我认识的机械工程师都抱怨工资低?
IP packet header analysis and static routing
国富氢能冲刺科创板:拟募资20亿 应收账款3.6亿超营收
:: ffff:192.168.31.101 what address is it?
魅族新任董事长沈子瑜:创始人黄章先生将作为魅族科技产品战略顾问
Getting started with rce
Ordering system based on wechat applet
软件测试人在深圳有哪些值得去的互联网公司【软件测试人员专供版】
Comparison of several distributed databases
魅族新任董事長沈子瑜:創始人黃章先生將作為魅族科技產品戰略顧問
随机推荐
SAS接口有什么优势特点
昆仑太科冲刺科创板:年营收1.3亿拟募资5亿 电科太极持股40%
Those things I didn't know until I took the postgraduate entrance examination
汇编语言 assembly language
UE源码阅读[1]---由问题入手UE中的延迟渲染
PHP basic syntax
What is the ranking of GF futures? Is it safe and reliable to open an account for GF futures online?
Tdengine biweekly selection of community issues | phase III
登录界面代码
微服务项目部署后,无法访问静态资源,无法访问到上传到upload中的文件,解决办法
Fault analysis | analysis of an example of MySQL running out of host memory
POI set the data format of the column (valid)
Make the seckill Carnival more leisurely: the database behind the promotion (Part 2)
Hongmeng fourth training
Zibll theme external chain redirection go page beautification tutorial
金融壹賬通香港上市:市值63億港元 葉望春稱守正篤實,久久為功
神经网络物联网未来发展趋势怎么样
LeetCode_3(无重复字符的最长子串)
PHP character capture notes 2020-09-14
2022 machine fitter (Advanced) test question simulation test question bank simulation test platform operation