简体   繁体   中英

Enable absolute ordering in spring using java based configuration instead of xml

I want to add/enable the absolute-ordering using java code configuration. Below is the xml based configuration we do in web.xml

<absolute-ordering/>

I am having a class that is configured using @Congiguration and @EnableWebMvc and another class that implements WebApplicationInitializer interface.

It worked for me.

Apparently you have multiple spring-web or spring-webmvc jars on your class path. Or another dependencies that contributes that file as well. Remove the source jars from your classpath. Name of the file are spring-web-5.3.0-sources.jar and spring-webmvc-5.3.0-sources.jar

I found the solution at this link

For xml base configuration make use of: add <absolute-ordering /> tag to your web.xml just under the tag. should work fine.

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