简体   繁体   中英

How to set priorities and annotations on Jersey filters using JDK 1.8

JDK 1.7 had javax.annotation.Priority annotation that helped in specifying the order in which filters should execute. It appears Priority class is no longer available in JDK1.8 - any idea how to set Filter ordering on Jersey? I am on JDK1.8 and Jersey. thanks

It's not a standard Java annotation. It's in the javax.annotation-api jar. If you're using Maven or Gradle, it should already be pulled in by Jersey.

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