mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-08 18:41:37 +00:00
Update samples following API changes in Spring Data snapshots
findOne is now findById
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ public interface FlightRepository extends CrudRepository<Flight, Long> {
|
||||
|
||||
@Override
|
||||
@PreAuthorize("#oauth2.hasScope('read')")
|
||||
Optional<Flight> findOne(Long aLong);
|
||||
Optional<Flight> findById(Long aLong);
|
||||
|
||||
@Override
|
||||
@PreAuthorize("#oauth2.hasScope('write')")
|
||||
|
||||
Reference in New Issue
Block a user