parent
5bf42bb7a8
commit
45da5c94b6
|
@ -16,6 +16,7 @@
|
|||
|
||||
package org.springframework.security.access.annotation;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -24,6 +25,9 @@ import java.util.List;
|
|||
*/
|
||||
public class BusinessServiceImpl<E extends Entity> implements BusinessService {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = -4249394090237180795L;
|
||||
|
||||
@Override
|
||||
@Secured({ "ROLE_USER" })
|
||||
public void someUserMethod1() {
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
package org.springframework.security.access.annotation;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -25,6 +26,9 @@ import org.springframework.security.access.prepost.PreFilter;
|
|||
|
||||
public class ExpressionProtectedBusinessServiceImpl implements BusinessService {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = -3320014879907436606L;
|
||||
|
||||
@Override
|
||||
public void someAdminMethod() {
|
||||
}
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
package org.springframework.security.access.annotation;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -28,6 +29,9 @@ import jakarta.annotation.security.RolesAllowed;
|
|||
@PermitAll
|
||||
public class Jsr250BusinessServiceImpl implements BusinessService {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = -7550211450382764339L;
|
||||
|
||||
@Override
|
||||
@RolesAllowed("ROLE_USER")
|
||||
public void someUserMethod1() {
|
||||
|
|
Loading…
Reference in New Issue