1

我有一个包含弹簧数据休息的弹簧启动应用程序。我想用 swagger 3 记录弹簧数据休息端点。我已经完成了以下实现。

@RepositoryRestResource
@SecurityRequirement(name = "bearer")
public interface AccountRepository extends CrudRepository<Account, Long> {

    /**
     * Returns all accounts belonging to the given {@link Customer}.
     *
     * @param customer
     * @return
     */
    List<Account> findByCustomer(@Param("customer") Customer customer);
}

但是当我打开 swagger ui 时。spring 数据休息端点未显示在 ui 中。

4

0 回答 0