Announcement Announcement Module
Collapse
No announcement yet.
@PreAuthorize with different proxy mechanisms Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • @PreAuthorize with different proxy mechanisms

    Hi,

    Could you help me understand why it works the @PreAuthorize annotation on an interface method even if I use class based proxies (proxy-target-class=true) with Spring Security (3.1.4)?
    It shouldn't work because Java annotations are not inherited from interfaces. What do I miss here?

    I used this simple repository to play with:
    https://github.com/altfatterz/authorize

    Thank you.

    Cheers,
    Zoltan

  • #2
    No one?
    Why it doesn't work similar to @Transactional? With @Transactional if I put the annotation just on the interface methods and use class based proxies (proxy-target-class=true) then the transactional semantics are ignored.

    Comment

    Working...
    X