当前位置:网站首页>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">
边栏推荐
- 最简单不用证书也可以多开功能的方式
- Simple process of penetration test
- Ordering system based on wechat applet
- tidb-dm报警DM_sync_process_exists_with_error排查
- 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
- [buuctf.reverse] 152-154
- Getting started with rce
- LeetCode_69(x 的平方根 )
- 让秒杀狂欢更从容:大促背后的数据库(下篇)
- Brief introduction to revolutionary neural networks
猜你喜欢
明峰医疗冲刺科创板:年营收3.5亿元 拟募资6.24亿
Make the seckill Carnival more leisurely: the database behind the promotion (Part 2)
Sqllab 1-6 exercise
::ffff:192.168.31.101 是一个什么地址?
Tiflash compiler oriented automatic vectorization acceleration
UE source code reading [1]--- starting with problems delayed rendering in UE
让秒杀狂欢更从容:大促背后的数据库(下篇)
Current situation, trend and view of neural network Internet of things in the future
Elfk deployment
如何深入理解“有限状态机”的设计思想?
随机推荐
C - Divisors of the Divisors of An Integer Gym - 102040C
[buuctf.reverse] 152-154
Login interface code
tidb-dm报警DM_sync_process_exists_with_error排查
Laravel - view (new and output views)
-Web direction attack and defense world
Selenium crawls Baidu pictures
Xampp configuring multiple items
[js] basic syntax - for loop
Ueditor + PHP enables Alibaba cloud OSS upload
2022 machine fitter (Advanced) test question simulation test question bank simulation test platform operation
深拷贝真难
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
SSH免密码登录详解
Tdengine biweekly selection of community issues | phase III
TiCDC 6.0原理之Sorter演进
uplad_ Labs first three levels
Hongmeng fourth training
Kotlin collaboration uses coroutinecontext to implement the retry logic after a network request fails
Comparison of several distributed databases