I have following JPA method that fetches stream of objects

@Cacheable("accounts")
    Stream<Account> findAccounts(int branchCode, int accountCode);

	














首页 > 解决方案 > 如何将 @Cacheable 与方法返回类型 Stream 一起使用 in Spring?

I have following JPA method that fetches stream of objects

@Cacheable("accounts")
    Stream<Account> findAccounts(int branchCode, int accountCode);