简体   繁体   中英

spring-rest-data) Is the HandleBefore* annotation deprecated?

I have a question about spring data rest.

I want to use HandleBefore, After* annotations. ex) @HandleBeforeCreate... etc

If you look for the document

https://docs.spring.io/spring-data/rest/docs/current/reference/html/#events.application-listener

Like the link above, it even provides a guide to using annotations as a sample.

on the other hand

https://docs.spring.io/spring-data/rest/docs/current/api/deprecated-list.html

according this link it's on the deprecated list, so I'm confused.

help me!

It is the field HandleBeforeCreate.value being deprecated, not the annotation HandleBeforeCreate .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM