Skip to content

Commit 57a5370

Browse files
committed
Mention explicitly that @eventlistener should be put on public methods
Closes gh-27777
1 parent 99c7608 commit 57a5370

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docs/asciidoc/core/core-beans.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10695,7 +10695,7 @@ architectures that build upon the well-known Spring programming model.
1069510695
[[context-functionality-events-annotation]]
1069610696
==== Annotation-based Event Listeners
1069710697

10698-
You can register an event listener on any method of a managed bean by using the
10698+
You can register an event listener on any `public` method of a managed bean by using the
1069910699
`@EventListener` annotation. The `BlockedListNotifier` can be rewritten as follows:
1070010700

1070110701
[source,java,indent=0,subs="verbatim,quotes",role="primary"]

0 commit comments

Comments
 (0)