Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datasource.ds1.file.file 加载本地规则文件,打包后报错 #3033

Closed
ylwang66 opened this issue Jan 4, 2023 · 3 comments
Closed
Assignees
Labels
area/sentinel spring cloud alibaba sentinel kind/bug Mark as bug stale wait-for-feedback

Comments

@ylwang66
Copy link

ylwang66 commented Jan 4, 2023

1、加载类路径下的规则,本地启动没有问题,打包在linux运行会出现问题
image

2、会说文件找不到
image

3、究其原因是因为用了ResourceUtils.getFile("classpath:flowrule.json"); 如何解决
image

@sczyh30 sczyh30 transferred this issue from alibaba/Sentinel Jan 4, 2023
@sczyh30 sczyh30 added the area/sentinel spring cloud alibaba sentinel label Jan 4, 2023
@ruansheng8
Copy link
Collaborator

ruansheng8 commented Jan 4, 2023

Related alibaba/Sentinel#646 , alibaba/Sentinel#3018

This may require the Sentinel community to provide a Spring Resource mode.

Copy link

This issue has been open 30 days with no activity. This will be closed in 7 days.

@github-actions github-actions bot added the stale label Mar 27, 2024
Copy link

github-actions bot commented Apr 5, 2024

This issue has been automatically marked as stale because it hasn't had any recent activity.If you think this should still be open, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for your interest and contribution to the Sping Cloud Alibaba Community.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/sentinel spring cloud alibaba sentinel kind/bug Mark as bug stale wait-for-feedback
Projects
None yet
Development

No branches or pull requests

3 participants