File tree Expand file tree Collapse file tree 2 files changed +24
-12
lines changed
docs/manual/src/docs/asciidoc/_includes/servlet/preface Expand file tree Collapse file tree 2 files changed +24
-12
lines changed Original file line number Diff line number Diff line change @@ -1165,11 +1165,14 @@ These will be passed to the AccessDecisionManager for it to make the actual deci
1165
1165
----
1166
1166
public interface BankService {
1167
1167
1168
- @Secured("IS_AUTHENTICATED_ANONYMOUSLY") Account readAccount(Long id);
1168
+ @Secured("IS_AUTHENTICATED_ANONYMOUSLY")
1169
+ public Account readAccount(Long id);
1169
1170
1170
- @Secured("IS_AUTHENTICATED_ANONYMOUSLY") Account[] findAccounts();
1171
+ @Secured("IS_AUTHENTICATED_ANONYMOUSLY")
1172
+ public Account[] findAccounts();
1171
1173
1172
- @Secured("ROLE_TELLER") Account post(Account account, double amount);
1174
+ @Secured("ROLE_TELLER")
1175
+ public Account post(Account account, double amount);
1173
1176
}
1174
1177
----
1175
1178
@@ -1200,11 +1203,14 @@ and the equivalent Java code would be
1200
1203
----
1201
1204
public interface BankService {
1202
1205
1203
- @PreAuthorize("isAnonymous()") Account readAccount(Long id);
1206
+ @PreAuthorize("isAnonymous()")
1207
+ public Account readAccount(Long id);
1204
1208
1205
- @PreAuthorize("isAnonymous()") Account[] findAccounts();
1209
+ @PreAuthorize("isAnonymous()")
1210
+ public Account[] findAccounts();
1206
1211
1207
- @PreAuthorize("hasAuthority('ROLE_TELLER')") Account post(Account account, double amount);
1212
+ @PreAuthorize("hasAuthority('ROLE_TELLER')")
1213
+ public Account post(Account account, double amount);
1208
1214
}
1209
1215
----
1210
1216
Original file line number Diff line number Diff line change @@ -763,11 +763,14 @@ These will be passed to the `AccessDecisionManager` for it to make the actual de
763
763
----
764
764
public interface BankService {
765
765
766
- @Secured("IS_AUTHENTICATED_ANONYMOUSLY") Account readAccount(Long id);
766
+ @Secured("IS_AUTHENTICATED_ANONYMOUSLY")
767
+ public Account readAccount(Long id);
767
768
768
- @Secured("IS_AUTHENTICATED_ANONYMOUSLY") Account[] findAccounts();
769
+ @Secured("IS_AUTHENTICATED_ANONYMOUSLY")
770
+ public Account[] findAccounts();
769
771
770
- @Secured("ROLE_TELLER") Account post(Account account, double amount);
772
+ @Secured("ROLE_TELLER")
773
+ public Account post(Account account, double amount);
771
774
}
772
775
----
773
776
@@ -792,11 +795,14 @@ and the equivalent Java code would be
792
795
----
793
796
public interface BankService {
794
797
795
- @PreAuthorize("isAnonymous()") Account readAccount(Long id);
798
+ @PreAuthorize("isAnonymous()")
799
+ public Account readAccount(Long id);
796
800
797
- @PreAuthorize("isAnonymous()") Account[] findAccounts();
801
+ @PreAuthorize("isAnonymous()")
802
+ public Account[] findAccounts();
798
803
799
- @PreAuthorize("hasAuthority('ROLE_TELLER')") Account post(Account account, double amount);
804
+ @PreAuthorize("hasAuthority('ROLE_TELLER')")
805
+ public Account post(Account account, double amount);
800
806
}
801
807
----
802
808
You can’t perform that action at this time.
0 commit comments