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

增加接口包说明 #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions spring-resources/spring-resource/README.md
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

package org.springframework.core.io; 这个没必要添加上来

Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@

### 五、接口源码

`InputStreamSource` 是一个简单的接口,用于提供一个输入流。它被设计为可以多次返回一个新的、未读取的输入流,这对于那些需要多次读取输入流的API
`InputStreamSource` 是一个简单的接口,用于提供一个输入流。它被设计为可以多次返回一个新的、未读取的输入流,可多次读取

```java
package org.springframework.core.io;
/**
* 表示可以提供输入流的资源或对象的接口。
*/
Expand Down Expand Up @@ -358,4 +359,4 @@ public class InputStreamResourceDemo {
- 对于需要刷新的资源,考虑使用缓存机制或其他方法来处理。
9. **资源加载的性能问题**
- 大量频繁地加载资源可能会导致性能问题。
- 考虑缓存资源内容或使用更高效的资源加载策略。
- 考虑缓存资源内容或使用更高效的资源加载策略。