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

ResourcePatternResolver的讲解可能存在错误 #16

Open
findxingang opened this issue Dec 8, 2023 · 2 comments
Open

ResourcePatternResolver的讲解可能存在错误 #16

findxingang opened this issue Dec 8, 2023 · 2 comments
Assignees
Labels
invalid This doesn't seem right

Comments

@findxingang
Copy link

原文:https://github.com/xuchengsheng/spring-reading/blob/master/spring-resources/spring-resource-resourcePatternResolver/README.md

在对 ResourcePatternResolver 进行讲解时,「四、主要功能」-「2. 资源获取」部分,提到了「通过 getResource(Resource location) 方法」,我查看了一下 Spring 源码,似乎没有这个方法呀,只有 getResource(String locationPattern) 一个重载方法

image

@xuchengsheng
Copy link
Owner

我在文章中写的是getResources(String locationPattern)方法。而你提出的问题是getResource(Resource location) 方法少了一个“s”。另外我检查文章似乎没有问题。是否可以给出更新详细的信息呢。最后我检查了ResourcePatternResolver接口的确是有getResources(String locationPattern)方法方法的。
image

@xuchengsheng xuchengsheng self-assigned this Dec 9, 2023
@xuchengsheng xuchengsheng added the invalid This doesn't seem right label Dec 9, 2023
@findxingang
Copy link
Author

抱歉我确实漏掉了一个 s,我想表达的是没有在源码中找到传参为 Resource 类型的 getResources 重载方法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants