index vs priority: The Two Ordering Concepts in Solon

java dev.to

If you've written a few Solon apps, you've probably seen index on interceptors or priority on plugins — and wondered whether they're the same thing with different names. They're not. Solon keeps two separate ordering concepts on purpose: index (顺序位, "order position") and priority (优先级, "priority"). This post explains what each one controls, what the built-in annotations actually use, and the one case where @Bean(index) does double duty. Two concepts, five places The official docs map

Read Full Tutorial open_in_new
arrow_back Back to Tutorials