Skip to content

Commit b7bf8d4

Browse files
ayoubAnbarajzheaux
authored andcommitted
Update data.adoc
No need to declare the method that create a bean as a public, and no need to declare interface that extends PagingAndSortingRepository with @repository Signed-off-by: ayoub anbara <[email protected]>
1 parent 1120733 commit b7bf8d4

File tree

1 file changed

+1
-3
lines changed
  • docs/modules/ROOT/pages/servlet/integrations

1 file changed

+1
-3
lines changed

docs/modules/ROOT/pages/servlet/integrations/data.adoc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Java::
1616
[source,java,role="primary"]
1717
----
1818
@Bean
19-
public SecurityEvaluationContextExtension securityEvaluationContextExtension() {
19+
SecurityEvaluationContextExtension securityEvaluationContextExtension() {
2020
return new SecurityEvaluationContextExtension();
2121
}
2222
----
@@ -50,7 +50,6 @@ Java::
5050
+
5151
[source,java,role="primary"]
5252
----
53-
@Repository
5453
public interface MessageRepository extends PagingAndSortingRepository<Message,Long> {
5554
@Query("select m from Message m where m.to.id = ?#{ principal?.id }")
5655
Page<Message> findInbox(Pageable pageable);
@@ -61,7 +60,6 @@ Kotlin::
6160
+
6261
[source,kotlin,role="secondary"]
6362
----
64-
@Repository
6563
interface MessageRepository : PagingAndSortingRepository<Message,Long> {
6664
@Query("select m from Message m where m.to.id = ?#{ principal?.id }")
6765
fun findInbox(pageable: Pageable): Page<Message>

0 commit comments

Comments
 (0)